Class: Monads::Success
Constant Summary
Constants inherited from Result
Class Method Summary collapse
Methods inherited from Result
Methods included from Monad
#fmap, included, #initialize, #join, #method_missing
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Monads::Monad
Class Method Details
.new(value) ⇒ Object
44 45 46 47 |
# File 'lib/ruby-monads/result.rb', line 44 def self.new(value) raise TypeError, "value should not be of #{value.class}" if value.is_a?(FAILURE_TRIGGER) super end |