Class: Mutant::Maybe::Nothing Private

Inherits:
Mutant::Maybe show all
Defined in:
lib/mutant/base.rb

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.

Instance Method Summary collapse

Instance Method Details

#apply(&block) ⇒ Maybe::Nothing

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.

Evaluate applicative block

Returns:



45
46
47
# File 'lib/mutant/base.rb', line 45

def apply(&block)
  require_block(&block)
end

#fmap(&block) ⇒ Maybe::Nothing

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.

Evaluate functor block

Returns:



38
39
40
# File 'lib/mutant/base.rb', line 38

def fmap(&block)
  require_block(&block)
end