Class: Mutant::Maybe::Just Private
- Inherits:
-
Mutant::Maybe
- Object
- Mutant::Maybe
- Mutant::Maybe::Just
- Defined in:
- lib/mutant/base.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Nothing
Instance Method Summary collapse
-
#apply {|value| ... } ⇒ Maybe
private
Evalute applicative block.
-
#fmap ⇒ Maybe::Just<Object>
private
Evalute functor block.
Instance Method Details
#apply {|value| ... } ⇒ Maybe
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Evalute applicative block
63 64 65 |
# File 'lib/mutant/base.rb', line 63 def apply yield(value) end |
#fmap ⇒ Maybe::Just<Object>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Evalute functor block
56 57 58 |
# File 'lib/mutant/base.rb', line 56 def fmap Just.new(yield(value)) end |