Module: Kernel

Defined in:
lib/puppet/util/monkey_patches.rb,
lib/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



193
194
195
196
# File 'lib/puppet/util/monkey_patches.rb', line 193

def tap
  yield(self)
  self
end