Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/rltk/util/monkeys.rb
Overview
Monkey-patched Object class.
Instance Method Summary collapse
-
#returning(value) {|value| ... } ⇒ Object
Simple implementation of the Y combinator.
Instance Method Details
#returning(value) {|value| ... } ⇒ Object
Simple implementation of the Y combinator.
73 74 75 76 |
# File 'lib/rltk/util/monkeys.rb', line 73 def returning(value) yield(value) value end |