Method: Porridge::SendExtractor#initialize

Defined in:
lib/porridge/send_extractor.rb

#initialize(method_name) ⇒ SendExtractor

Creates a new instance of Porridge::SendExtractor with the given method name.

Parameters:

  • method_name (String, Symbol)

    the name of the method to call when extracting the value.



8
9
10
11
# File 'lib/porridge/send_extractor.rb', line 8

def initialize(method_name)
  @method_name = method_name.to_s
  super()
end