Class: Object

Inherits:
BasicObject
Defined in:
lib/mongo/util/core_ext.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

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

:nodoc:

Yields:

  • (_self)

Yield Parameters:

  • _self (Object)

    the object that the method was called on



5
6
7
8
# File 'lib/mongo/util/core_ext.rb', line 5

def tap
  yield self
  self
end