Class: Resque::Reports::Extensions::Dummy

Inherits:
Object
  • Object
show all
Defined in:
lib/resque/reports/extensions.rb

Overview

Class for dummy object that respond to any method and returns ‘nil’ on any method call

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *arguments, &block) ⇒ Object



18
19
20
# File 'lib/resque/reports/extensions.rb', line 18

def method_missing(method, *arguments, &block)
  nil
end

Instance Method Details

#respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/resque/reports/extensions.rb', line 22

def respond_to?(method, include_private = false)
  true
end