Class: Kleisli::Try::Failure
- Inherits:
-
Kleisli::Try
- Object
- Functor
- Monad
- Kleisli::Try
- Kleisli::Try::Failure
- Defined in:
- lib/kleisli/try.rb
Instance Attribute Summary
Attributes inherited from Kleisli::Try
Instance Method Summary collapse
- #>(f) ⇒ Object
- #fmap(&f) ⇒ Object
-
#initialize(exception) ⇒ Failure
constructor
A new instance of Failure.
- #to_maybe ⇒ Object
Methods inherited from Kleisli::Try
Methods inherited from Monad
Constructor Details
#initialize(exception) ⇒ Failure
Returns a new instance of Failure.
35 36 37 |
# File 'lib/kleisli/try.rb', line 35 def initialize(exception) @exception = exception end |