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



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

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

Instance Method Details

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

Returns:

  • (Boolean)


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

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