Sha256: cbe3f69aaa553f698b7764373eabdc72748ea68da9415756c98a5028068e5cd9
Contents?: true
Size: 317 Bytes
Versions: 2
Compression:
Stored size: 317 Bytes
Contents
module Kernel # A Ruby-ized realization of the K combinator, courtesy of Mikael Brockman. # # def foo # returning values = [] do # values << 'bar' # values << 'baz' # end # end # # foo # => ['bar', 'baz'] # def returning(value) #:nodoc: yield value end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activesupport-1.0.2 | lib/active_support/core_ext/kernel.rb |
activesupport-1.0.3 | lib/active_support/core_ext/kernel.rb |