Class: ParamParam::Failure
Overview
Describes failed result.
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
An error related to the failure.
Instance Method Summary collapse
-
#failure? ⇒ Boolean
Returns
true
. -
#initialize(error) ⇒ Failure
constructor
A new instance of Failure.
Methods inherited from Result
Constructor Details
#initialize(error) ⇒ Failure
Returns a new instance of Failure.
38 39 40 |
# File 'lib/param_param/result.rb', line 38 def initialize(error) @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
An error related to the failure.
36 37 38 |
# File 'lib/param_param/result.rb', line 36 def error @error end |
Instance Method Details
#failure? ⇒ Boolean
Returns true
.
43 44 45 |
# File 'lib/param_param/result.rb', line 43 def failure? true end |