Class: MPrelude::Maybe::Nothing
- Inherits:
-
MPrelude::Maybe
- Object
- MPrelude::Maybe
- MPrelude::Maybe::Nothing
- Defined in:
- lib/mprelude.rb
Instance Method Summary collapse
-
#bind(&block) ⇒ Maybe::Nothing
Evaluate applicative block.
-
#fmap(&block) ⇒ Maybe::Nothing
Evaluate functor block.
Instance Method Details
#bind(&block) ⇒ Maybe::Nothing
Evaluate applicative block
47 48 49 |
# File 'lib/mprelude.rb', line 47 def bind(&block) require_block(&block) end |
#fmap(&block) ⇒ Maybe::Nothing
Evaluate functor block
40 41 42 |
# File 'lib/mprelude.rb', line 40 def fmap(&block) require_block(&block) end |