Class: Bogus::RespondsToEverything
- Inherits:
-
Object
- Object
- Bogus::RespondsToEverything
- Includes:
- FakeObject, RecordInteractions
- Defined in:
- lib/bogus/fakes/responds_to_everything.rb
Instance Method Summary collapse
-
#initialize ⇒ RespondsToEverything
constructor
A new instance of RespondsToEverything.
- #method_missing(name, *args, &block) ⇒ Object
- #respond_to?(method) ⇒ Boolean
Methods included from RecordInteractions
Constructor Details
#initialize ⇒ RespondsToEverything
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
10 11 12 |
# File 'lib/bogus/fakes/responds_to_everything.rb', line 10 def respond_to?(method) true end |