Exception: Errgonomic::UnwrapError
- Defined in:
- lib/errgonomic.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(msg, value = nil) ⇒ UnwrapError
constructor
A new instance of UnwrapError.
Constructor Details
#initialize(msg, value = nil) ⇒ UnwrapError
Returns a new instance of UnwrapError.
35 36 37 38 |
# File 'lib/errgonomic.rb', line 35 def initialize(msg, value = nil) super(msg) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
33 34 35 |
# File 'lib/errgonomic.rb', line 33 def value @value end |