Class: Mutant::Maybe::Just Private

Inherits:
Mutant::Maybe show all
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

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

Yields:

  • (value)

Returns:



63
64
65
# File 'lib/mutant/base.rb', line 63

def apply
  yield(value)
end

#fmapMaybe::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

Returns:



56
57
58
# File 'lib/mutant/base.rb', line 56

def fmap
  Just.new(yield(value))
end