Class: ACTV::NullObject

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/actv/null_object.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object



11
12
13
# File 'lib/actv/null_object.rb', line 11

def method_missing(*args, &block)
  self
end

Instance Method Details

#nil?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/actv/null_object.rb', line 7

def nil?
  true
end

#respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/actv/null_object.rb', line 15

def respond_to_missing?(method_name, include_private=false)
  true
end