sample/sample.rb in deka_eiwakun-0.2.0 vs sample/sample.rb in deka_eiwakun-0.3.0

- old
+ new

@@ -11,10 +11,17 @@ [1, 2, 3].map {|i| i }.join +# RSpec で使うメソッド名 +subject { self } +let(:a) { 1 } +let!(:b) { + 1 + 1 +} + # ハッシュリテラル _ = {a: 1, b: 2} _ = { @@ -32,5 +39,15 @@ 2, 3, 4, 5 ) + +# 条件無し case +a = 1 +b = 2 +case +when a == 1 then true +when b == 2 then false +else + raise +end