Class: NullObject

Inherits:
Object
  • Object
show all
Defined in:
lib/fuey_client/fuey/null_object.rb

Instance Method Summary collapse

Constructor Details

#initializeNullObject

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

Returns:

  • (Boolean)


10
# File 'lib/fuey_client/fuey/null_object.rb', line 10

def nil?; true; end