Module: Kernel

Defined in:
lib/buildr/core/util.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

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

Borrowed from Ruby 1.9.

Yields:

  • (_self)

Yield Parameters:

  • _self (Kernel)

    the object that the method was called on



163
164
165
166
# File 'lib/buildr/core/util.rb', line 163

def tap
  yield self if block_given?
  self
end