Class: Confident::Result::Error
- Inherits:
-
Confident::Result
- Object
- Confident::Result
- Confident::Result::Error
- Defined in:
- lib/confident/result.rb
Constant Summary
Constants inherited from Confident::Result
DEFAULT_FAILURE_MESSAGE, DEFAULT_MISSING_ERROR_HANDLER_MESSAGE
Instance Method Summary collapse
Methods inherited from Confident::Result
error, from_condition, inherited, #initialize, ok, #on_error
Constructor Details
This class inherits a constructor from Confident::Result
Instance Method Details
#ok? ⇒ Boolean
59 60 61 |
# File 'lib/confident/result.rb', line 59 def ok? false end |
#unwrap ⇒ Object
63 64 65 66 |
# File 'lib/confident/result.rb', line 63 def unwrap super error_handler.call(value) end |