Module: Kernel

Defined in:
lib/docter.rb

Overview

Ruby 1.9 conveniences.

Instance Method Summary collapse

Instance Method Details

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

:nodoc:

Yields:

  • (_self)

Yield Parameters:

  • _self (Kernel)

    the object that the method was called on



24
25
26
27
# File 'lib/docter.rb', line 24

def tap
  yield self if block_given?
  self
end