Class: Success
Instance Method Summary collapse
-
#initialize(value) ⇒ Success
constructor
A new instance of Success.
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 |