Class: Confident::Result::Error

Inherits:
Confident::Result show all
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

Returns:

  • (Boolean)


59
60
61
# File 'lib/confident/result.rb', line 59

def ok?
  false
end

#unwrapObject



63
64
65
66
# File 'lib/confident/result.rb', line 63

def unwrap
  super
  error_handler.call(value)
end