Class: Some

Inherits:
Maybe show all
Defined in:
lib/terminal/emojify/maybe.rb

Instance Method Summary collapse

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

#valueObject



35
36
37
# File 'lib/terminal/emojify/maybe.rb', line 35

def value
  @object
end