Class: Mona::DictResult::Err

Inherits:
Err
  • Object
show all
Includes:
Mona::DictResult
Defined in:
lib/mona/dict_result/err.rb

Overview

Err DictResult

Constant Summary

Constants included from Mona::DictResult

EMPTY

Constants included from Result

Result::VERSION

Instance Attribute Summary

Attributes inherited from Err

#failure, #meta, #reason

Instance Method Summary collapse

Methods included from Mona::DictResult

[], #get, #key?, #sequence

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

Raises:



9
# File 'lib/mona/dict_result/err.rb', line 9

def set(_key, _val) = raise(Error, "cannot #set on #{self}")

#to_hObject



11
# File 'lib/mona/dict_result/err.rb', line 11

def to_h = @failure