Class: Object

Inherits:
BasicObject
Defined in:
lib/object.rb

Instance Method Summary collapse

Instance Method Details

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

Yields:

  • (receiver)


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

def returning(receiver)
  yield receiver
  receiver
end