Class: Object

Inherits:
BasicObject
Defined in:
lib/gitty/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



11
12
13
14
# File 'lib/gitty/ext.rb', line 11

def tap
  yield self
  self
end