Class: Kleisli::Maybe::None
- Inherits:
-
Kleisli::Maybe
- Object
- Functor
- Kleisli::Monad
- Kleisli::Maybe
- Kleisli::Maybe::None
- Defined in:
- lib/kleisli/maybe.rb
Instance Attribute Summary
Attributes inherited from Kleisli::Maybe
Instance Method Summary collapse
- #>(block) ⇒ Object
- #fmap(&f) ⇒ Object
- #or(other) ⇒ Object
- #to_s ⇒ Object (also: #inspect)
Methods inherited from Kleisli::Maybe
Methods inherited from Kleisli::Monad
Instance Method Details
#>(block) ⇒ Object
32 33 34 |
# File 'lib/kleisli/maybe.rb', line 32 def >(block) self end |
#fmap(&f) ⇒ Object
28 29 30 |
# File 'lib/kleisli/maybe.rb', line 28 def fmap(&f) self end |
#or(other) ⇒ Object
36 37 38 |
# File 'lib/kleisli/maybe.rb', line 36 def or(other) other end |
#to_s ⇒ Object Also known as: inspect
40 41 42 |
# File 'lib/kleisli/maybe.rb', line 40 def to_s "None" end |