Class: RR::SpyVerificationProxy
- Inherits:
-
Object
- Object
- RR::SpyVerificationProxy
- Defined in:
- lib/rr/spy_verification_proxy.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(subject) ⇒ SpyVerificationProxy
constructor
A new instance of SpyVerificationProxy.
- #method_missing(method_name, *args, &block) ⇒ Object
Constructor Details
#initialize(subject) ⇒ SpyVerificationProxy
Returns a new instance of SpyVerificationProxy.
5 6 7 |
# File 'lib/rr/spy_verification_proxy.rb', line 5 def initialize(subject) @subject = subject end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, &block) ⇒ Object
10 11 12 |
# File 'lib/rr/spy_verification_proxy.rb', line 10 def method_missing(method_name, *args, **kwargs, &block) SpyVerification.new(@subject, method_name, args, kwargs) end |