Class: Bogus::RespondsToEverything

Inherits:
Object
  • Object
show all
Includes:
FakeObject, RecordInteractions
Defined in:
lib/bogus/fakes/responds_to_everything.rb

Instance Method Summary collapse

Methods included from RecordInteractions

#__record__, #__shadow__

Constructor Details

#initializeRespondsToEverything

Returns a new instance of RespondsToEverything.



6
7
8
# File 'lib/bogus/fakes/responds_to_everything.rb', line 6

def initialize
  __shadow__
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



14
15
16
# File 'lib/bogus/fakes/responds_to_everything.rb', line 14

def method_missing(name, *args, &block)
  __record__(name, *args, &block)
end

Instance Method Details

#respond_to?(method) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/bogus/fakes/responds_to_everything.rb', line 10

def respond_to?(method)
  true
end