Class: AutomationObject::Proxy::Proxy
- Inherits:
-
Object
- Object
- AutomationObject::Proxy::Proxy
- Defined in:
- lib/automation_object/proxy/proxy.rb
Overview
CompositeBase Proxy class for getting between another
Direct Known Subclasses
Driver::AppiumAdapter::Driver, Driver::AppiumAdapter::Element, Driver::SeleniumAdapter::Driver, Driver::SeleniumAdapter::Element, Dsl::Proxy, Framework, MutexProxy, ThrottleProxy, State::ElementProxy
Instance Method Summary collapse
-
#initialize(subject) ⇒ Proxy
constructor
A new instance of Proxy.
- #method_missing(method, *args, &block) ⇒ Object
Constructor Details
#initialize(subject) ⇒ Proxy
Returns a new instance of Proxy
12 13 14 |
# File 'lib/automation_object/proxy/proxy.rb', line 12 def initialize(subject) @subject = subject end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
19 20 21 |
# File 'lib/automation_object/proxy/proxy.rb', line 19 def method_missing(method, *args, &block) @subject.send(method, *args, &block) end |