Class: Resultify::Result
- Inherits:
-
Object
- Object
- Resultify::Result
- Defined in:
- lib/resultify.rb
Instance Attribute Summary collapse
-
#error_handler ⇒ Object
Returns the value of attribute error_handler.
-
#value_handler ⇒ Object
Returns the value of attribute value_handler.
Instance Method Summary collapse
-
#initialize(ret_val, err) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(ret_val, err) ⇒ Result
Returns a new instance of Result.
12 13 14 15 |
# File 'lib/resultify.rb', line 12 def initialize(ret_val, err) @value = ret_val @err = err end |
Instance Attribute Details
#error_handler ⇒ Object
Returns the value of attribute error_handler.
9 10 11 |
# File 'lib/resultify.rb', line 9 def error_handler @error_handler end |
#value_handler ⇒ Object
Returns the value of attribute value_handler.
10 11 12 |
# File 'lib/resultify.rb', line 10 def value_handler @value_handler end |