Class: Object

Inherits:
BasicObject
Defined in:
lib/ext.rb

Instance Method Summary collapse

Instance Method Details

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Object)

    the object that the method was called on



32
33
34
35
# File 'lib/ext.rb', line 32

def tap
  yield self
  self
end