Sha256: 75229d0e35fc2cafe472d07d6ee05688369c40420379d3a0764b5f6a5b97d29c
Contents?: true
Size: 350 Bytes
Versions: 2
Compression:
Stored size: 350 Bytes
Contents
# ブロック ## 一行ブロック [1, 2, 3].map {|i| i } ## 複数行ブロック [1, 2, 3].each do |i| puts i end [1, 2, 3].map {|i| i }.join # ハッシュリテラル _ = {a: 1, b: 2} _ = { a: 1, b: 2 } # 長い引数リスト def many_arg_method(a, b, c, d, e) [a, b, c, d, e] end many_arg_method( 1, 2, 3, 4, 5 )
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
deka_eiwakun-0.2.0 | sample/sample.rb |
deka_eiwakun-0.1.0 | sample/sample.rb |