Class: Failure

Inherits:
Object
  • Object
show all
Includes:
Either
Defined in:
lib/monadic/either.rb

Instance Method Summary collapse

Methods included from Either

#==, #bind, chain, #failure?, #fetch, #success?, #to_s

Constructor Details

#initialize(value) ⇒ Failure

Returns a new instance of Failure.



77
78
79
# File 'lib/monadic/either.rb', line 77

def initialize(value)
  @value = value
end