Class: Object

Inherits:
BasicObject
Defined in:
lib/engineyard/ruby_ext.rb

Instance Method Summary collapse

Instance Method Details

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

Ruby 1.9 has it, 1.8 doesn’t

Yields:

  • (_self)

Yield Parameters:

  • _self (Object)

    the object that the method was called on



4
5
6
7
# File 'lib/engineyard/ruby_ext.rb', line 4

def tap
  yield self
  self
end