Class: Bogus::RespondsToEverything
Instance Method Summary
collapse
#__record__, #__shadow__
Constructor Details
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
|