Class: Solid::Result::CallableAndThen::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/solid/result/callable_and_then/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



7
8
9
# File 'lib/solid/result/callable_and_then/config.rb', line 7

def initialize
  self.default_method_name_to_call = :call
end

Instance Attribute Details

#default_method_name_to_callObject

Returns the value of attribute default_method_name_to_call.



5
6
7
# File 'lib/solid/result/callable_and_then/config.rb', line 5

def default_method_name_to_call
  @default_method_name_to_call
end

Instance Method Details

#optionsObject



11
12
13
# File 'lib/solid/result/callable_and_then/config.rb', line 11

def options
  { default_method_name_to_call: default_method_name_to_call }
end