Class: Mona::Result::Dict::Err

Inherits:
Err
  • Object
show all
Includes:
ReadInterface
Defined in:
lib/mona/result/dict.rb

Overview

Err dict result

Since:

  • 0.1.0

Instance Attribute Summary

Attributes inherited from Err

#failure, #meta, #reason

Instance Method Summary collapse

Methods included from ReadInterface

#[], #fetch, #key?

Methods inherited from Err

#and_tap, #and_then, #deconstruct, #deconstruct_keys, #either, #err, #err?, #initialize, #ok, #ok?, #or_else, #to_result, #to_s, #value_or

Constructor Details

This class inherits a constructor from Mona::Result::Err

Instance Method Details

#sequenceObject

Since:

  • 0.1.0



49
# File 'lib/mona/result/dict.rb', line 49

def sequence(&) = self

#set(_key, _val) ⇒ Object

Raises:

Since:

  • 0.1.0



47
# File 'lib/mona/result/dict.rb', line 47

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

#to_hObject

Since:

  • 0.1.0



51
# File 'lib/mona/result/dict.rb', line 51

def to_h = @failure