Class: Errgonomic::Result::Err
Defined Under Namespace
Classes: Arbitrary
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#err? ⇒ Boolean
Err is always err.
-
#initialize(value = Arbitrary) ⇒ Err
constructor
Err may be constructed without a value, if you want.
-
#ok? ⇒ Boolean
Err is never ok.
Methods inherited from Any
#==, #and, #and_then, #deconstruct, #err_and?, #expect!, #map, #map_err, #ok_and?, #or, #or_else, #result?, #tap_err, #tap_ok, #to_json, #to_s, #unwrap!, #unwrap_err!, #unwrap_or, #unwrap_or_else
Constructor Details
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
335 336 337 |
# File 'lib/errgonomic/result.rb', line 335 def value @value end |
Instance Method Details
#err? ⇒ Boolean
Err is always err
350 351 352 |
# File 'lib/errgonomic/result.rb', line 350 def err? true end |
#ok? ⇒ Boolean
Err is never ok
358 359 360 |
# File 'lib/errgonomic/result.rb', line 358 def ok? false end |