Module: YieldSelf

Defined in:
lib/yield_self.rb,
lib/yield_self/version.rb

Constant Summary collapse

VERSION =
"0.2.0".freeze

Instance Method Summary collapse

Instance Method Details

#yield_self {|_self| ... } ⇒ Object Also known as: then

Yields:

  • (_self)

Yield Parameters:

  • _self (YieldSelf)

    the object that the method was called on



4
5
6
# File 'lib/yield_self.rb', line 4

def yield_self
  yield(self)
end