Class: Success

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) ⇒ Success

Returns a new instance of Success.



70
71
72
# File 'lib/monadic/either.rb', line 70

def initialize(value)
  @value = value
end