Class: Maybe
Instance Attribute Summary
Attributes inherited from Never
Instance Method Summary collapse
- #end ⇒ Object
-
#initialize(value) ⇒ Maybe
constructor
A new instance of Maybe.
- #method_missing(*args, &block) ⇒ Object
Methods inherited from Never
Constructor Details
#initialize(value) ⇒ Maybe
Returns a new instance of Maybe.
28 29 30 |
# File 'lib/rmaybe.rb', line 28 def initialize(value) @value = value end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Method Details
#end ⇒ Object
36 37 38 |
# File 'lib/rmaybe.rb', line 36 def end @value end |