Class: Monadic::Just
Instance Method Summary collapse
Methods inherited from Maybe
#empty?, #select, #to_ary, #truly?, unit
Methods inherited from Monad
#==, #bind, #initialize, #join, #map, #to_s, unit
Constructor Details
This class inherits a constructor from Monadic::Monad
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Method Details
#fetch(default = nil) ⇒ Object Also known as: _
36 37 38 |
# File 'lib/monadic/maybe.rb', line 36 def fetch(default=nil) @value end |