Sha256: 2aa463003eb6259053d24fd8cfa31ffd28c0e0ed060433ca75c7e1287009d3f6
Contents?: true
Size: 558 Bytes
Versions: 52
Compression:
Stored size: 558 Bytes
Contents
module BlockSpecs class Yielder def z yield end def m(*a) yield(*a) end def s(a) yield(a) end def r(a) yield(*a) end end # TODO: rewrite all specs that use Yield to use Yielder 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 def yield_this(obj) yield obj end end end
Version data entries
52 entries across 52 versions & 2 rubygems