摘要: 闰年程序 require_relative './leap_year' describe "Leap Year" do it "2016 is leap year" do result = is_leap_year?(2016) # 把 2016 传进去 expect(result).to eq(t 阅读全文
posted @ 2018-03-22 19:59 Mr-chen 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 编码规则 https://github.com/thoughtbot/guides/tree/master/style/ruby *Use a trailing comma after each item in a multi-line list, including the last item. 阅读全文
posted @ 2018-03-22 10:37 Mr-chen 阅读(161) 评论(0) 推荐(0) 编辑