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



23
24
25
26
# File 'lib/mongo/util/core_ext.rb', line 23

def tap
  yield self
  self
end