Class: Mona::DictResult::Err
- Includes:
- Mona::DictResult
- Defined in:
- lib/mona/dict_result/err.rb
Overview
Err DictResult
Constant Summary
Constants included from Mona::DictResult
Constants included from Result
Instance Attribute Summary
Attributes inherited from Err
Instance Method Summary collapse
Methods included from Mona::DictResult
Methods included from Result
#==, [], #and_tap, #and_then, #deconstruct, #deconstruct_keys, #either, #err, #err?, #ok, #ok?, #or_else, #value_or
Methods inherited from Err
[], #either, #initialize, #inspect
Constructor Details
This class inherits a constructor from Mona::Err
Instance Method Details
#set(_key, _val) ⇒ Object
9 |
# File 'lib/mona/dict_result/err.rb', line 9 def set(_key, _val) = raise(Error, "cannot #set on #{self}") |
#to_h ⇒ Object
11 |
# File 'lib/mona/dict_result/err.rb', line 11 def to_h = @failure |