Class: Object

Inherits:
BasicObject
Defined in:
lib/core_ext/object.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Object)

    the object that the method was called on



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

def tap
  yield self
  self
end