Class: Confident::Result::Ok

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)


48
49
50
# File 'lib/confident/result.rb', line 48

def ok?
  true
end

#unwrapObject



52
53
54
55
# File 'lib/confident/result.rb', line 52

def unwrap
  super
  value
end