Module: Restforce::CoreExtensions

Defined in:
lib/restforce.rb

Overview

Add .tap method in Ruby 1.8

Instance Method Summary collapse

Instance Method Details

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

Yields:

  • (_self)

Yield Parameters:



94
95
96
97
# File 'lib/restforce.rb', line 94

def tap
  yield self
  self
end