Class: AutomationObject::Dsl::Proxy
- Inherits:
-
Proxy::Proxy
- Object
- Proxy::Proxy
- AutomationObject::Dsl::Proxy
- Defined in:
- lib/automation_object/dsl/_proxy.rb
Overview
Base Proxy Object Proxies intercept commands and issue calls to the state Prevents inspection from picking up internal methods
Direct Known Subclasses
ElementArrayProxy, ElementHashProxy, ElementProxy, ModalProxy, ScreenProxy, TopProxy
Instance Method Summary collapse
-
#initialize(subject_class, blue_prints, state, name) ⇒ Proxy
constructor
A new instance of Proxy.
Methods inherited from Proxy::Proxy
Constructor Details
#initialize(subject_class, blue_prints, state, name) ⇒ Proxy
Returns a new instance of Proxy
15 16 17 18 19 20 21 22 |
# File 'lib/automation_object/dsl/_proxy.rb', line 15 def initialize(subject_class, blue_prints, state, name) @blue_prints = blue_prints @state = state @name = name @subject_class = subject_class @subject = @subject_class.new(blue_prints, state) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class AutomationObject::Proxy::Proxy