Method: Object#tap

Defined in:
lib/thread_storm/active_support.rb

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Object)

    the object that the method was called on



42
43
44
45
# File 'lib/thread_storm/active_support.rb', line 42

def tap
  yield(self)
  self
end