Class: AutomationObject::Dsl::ElementArrayProxy
- Inherits:
-
Proxy
- Object
- Proxy::Proxy
- Proxy
- AutomationObject::Dsl::ElementArrayProxy
- Defined in:
- lib/automation_object/dsl/element_array.rb
Overview
Proxy for ElementArray
Instance Method Summary collapse
- #active? ⇒ Boolean
-
#initialize(blue_prints, state, name) ⇒ ElementArrayProxy
constructor
A new instance of ElementArrayProxy.
- #method_missing(method, *args, &block) ⇒ Object
Constructor Details
#initialize(blue_prints, state, name) ⇒ ElementArrayProxy
Returns a new instance of ElementArrayProxy
16 17 18 |
# File 'lib/automation_object/dsl/element_array.rb', line 16 def initialize(blue_prints, state, name) super ElementArray, blue_prints, state, name end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/automation_object/dsl/element_array.rb', line 23 def method_missing(method, *args, &block) return super if ElementArray.methods.include?(method) @subject = @state.utilize super end |
Instance Method Details
#active? ⇒ Boolean
32 33 34 |
# File 'lib/automation_object/dsl/element_array.rb', line 32 def active? @state.active? end |