Module: Kernel

Defined in:
lib/vendor/puppet/util/monkey_patches.rb,
lib/vendor/puppet/external/pson/common.rb

Overview

Ruby 1.8.5 doesn’t have tap

Instance Method Summary collapse

Instance Method Details

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Kernel)

    the object that the method was called on



200
201
202
203
# File 'lib/vendor/puppet/util/monkey_patches.rb', line 200

def tap
  yield(self)
  self
end