Sha256: 35000379bbe534cf7db0d5b5d48a651a958f2a4ee1798ebebf56ddc7460ac108
Contents?: true
Size: 323 Bytes
Versions: 3
Compression:
Stored size: 323 Bytes
Contents
puts "in block fixtures" module BlockSpecs class Yield def splat(*args) yield *args end def two_args yield 1, 2 end def two_arg_array yield [1, 2] end def yield_splat_inside_block [1, 2].send(:each_with_index) { |*args| yield(*args) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opal-0.3.2 | gems/core/spec/language/fixtures/block.rb |
opal-0.3.1 | gems/core/spec/language/fixtures/block.rb |
opal-0.3.0 | gems/core/spec/language/fixtures/block.rb |