Class: Object

Inherits:
BasicObject
Defined in:
lib/ext/core.rb

Instance Method Summary collapse

Instance Method Details

#returning(value) {|value| ... } ⇒ Object

Yields:

  • (value)


2
3
4
5
# File 'lib/ext/core.rb', line 2

def returning(value)
  yield(value)
  value
end