Class: Object

Inherits:
BasicObject
Defined in:
lib/then.rb

Instance Method Summary collapse

Instance Method Details

#then {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Object)

    the object that the method was called on



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

def then
  yield self
  self
end