Class: Some
Instance Method Summary collapse
-
#initialize(object) ⇒ Some
constructor
A new instance of Some.
- #value ⇒ Object
Methods inherited from Maybe
#method_missing, #respond_to?, wrap
Constructor Details
#initialize(object) ⇒ Some
Returns a new instance of Some.
31 32 33 |
# File 'lib/terminal/emojify/maybe.rb', line 31 def initialize(object) @object = object end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Maybe
Instance Method Details
#value ⇒ Object
35 36 37 |
# File 'lib/terminal/emojify/maybe.rb', line 35 def value @object end |