Class: AutomationObject::Dsl::ElementHashProxy
- Inherits:
-
Proxy
- Object
- Proxy::Proxy
- Proxy
- AutomationObject::Dsl::ElementHashProxy
- Defined in:
- lib/automation_object/dsl/element_hash.rb
Overview
Proxy for ElementHash
Instance Method Summary collapse
- #active? ⇒ Boolean
-
#initialize(blue_prints, state, name) ⇒ ElementHashProxy
constructor
A new instance of ElementHashProxy.
- #method_missing(method, *args, &block) ⇒ Object
Constructor Details
#initialize(blue_prints, state, name) ⇒ ElementHashProxy
Returns a new instance of ElementHashProxy
16 17 18 |
# File 'lib/automation_object/dsl/element_hash.rb', line 16 def initialize(blue_prints, state, name) super ElementHash, 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_hash.rb', line 23 def method_missing(method, *args, &block) return super if ElementHash.methods.include?(method) @subject = @state.utilize super end |
Instance Method Details
#active? ⇒ Boolean
32 33 34 |
# File 'lib/automation_object/dsl/element_hash.rb', line 32 def active? @state.active? end |