Class: Object

Inherits:
BasicObject
Defined in:
lib/chunky_png/compatibility.rb

Instance Method Summary collapse

Instance Method Details

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Object)

    the object that the method was called on



10
11
12
13
# File 'lib/chunky_png/compatibility.rb', line 10

def tap(&block)
  yield(self) if block_given?
  return self
end