Class: NullObject
- Inherits:
-
Object
- Object
- NullObject
- Defined in:
- lib/fuey_client/fuey/null_object.rb
Instance Method Summary collapse
-
#initialize ⇒ NullObject
constructor
A new instance of NullObject.
- #method_missing(*args, &block) ⇒ Object
- #nil? ⇒ Boolean
Constructor Details
#initialize ⇒ NullObject
Returns a new instance of NullObject.
2 3 4 |
# File 'lib/fuey_client/fuey/null_object.rb', line 2 def initialize @origin = caller.first ### SETS ORIGIN FOR INSPECT INFO end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object
6 7 8 |
# File 'lib/fuey_client/fuey/null_object.rb', line 6 def method_missing(*args, &block) self end |
Instance Method Details
#nil? ⇒ Boolean
10 |
# File 'lib/fuey_client/fuey/null_object.rb', line 10 def nil?; true; end |