Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: v0.12.0
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (17 sloc) 0.308 kB
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)
yield
value
end
end
Jump to Line
Something went wrong with that request. Please try again.