Class: Resultify::Option
- Inherits:
-
Object
- Object
- Resultify::Option
- Defined in:
- lib/resultify.rb
Instance Attribute Summary collapse
-
#blank_handler ⇒ Object
Returns the value of attribute blank_handler.
-
#value_handler ⇒ Object
Returns the value of attribute value_handler.
Instance Method Summary collapse
-
#initialize(ret_val) ⇒ Option
constructor
A new instance of Option.
Constructor Details
#initialize(ret_val) ⇒ Option
Returns a new instance of Option.
41 42 43 |
# File 'lib/resultify.rb', line 41 def initialize(ret_val) @value = ret_val end |
Instance Attribute Details
#blank_handler ⇒ Object
Returns the value of attribute blank_handler.
38 39 40 |
# File 'lib/resultify.rb', line 38 def blank_handler @blank_handler end |
#value_handler ⇒ Object
Returns the value of attribute value_handler.
39 40 41 |
# File 'lib/resultify.rb', line 39 def value_handler @value_handler end |