Class: Object

Inherits:
BasicObject
Defined in:
lib/ohm/compat-1.8.6.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) tap {|_self| ... }

Yields:

  • (_self)

Yield Parameters:

  • (Object) _self

    the object that the method was called on



19
20
21
22
# File 'lib/ohm/compat-1.8.6.rb', line 19

def tap
  yield(self)
  self
end