Class: VersatileRJS::Proxy::ElementSetProxy
- Inherits:
-
VersatileRJS::Proxy
- Object
- VersatileRJS::Proxy
- VersatileRJS::Proxy::ElementSetProxy
- Includes:
- FrameworkDependent, Selectable
- Defined in:
- lib/versatile_rjs/proxy/element_set_proxy.rb
Direct Known Subclasses
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(page, statement) ⇒ ElementSetProxy
constructor
A new instance of ElementSetProxy.
- #invoke(method_name) ⇒ Object
Methods included from FrameworkDependent
Methods included from Selectable
Methods inherited from VersatileRJS::Proxy
#call, #method_missing, #to_json
Constructor Details
#initialize(page, statement) ⇒ ElementSetProxy
Returns a new instance of ElementSetProxy.
9 10 11 |
# File 'lib/versatile_rjs/proxy/element_set_proxy.rb', line 9 def initialize(page, statement) super end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class VersatileRJS::Proxy
Instance Method Details
#each(&block) ⇒ Object
13 14 15 |
# File 'lib/versatile_rjs/proxy/element_set_proxy.rb', line 13 def each(&block) EachProxy.new_instance(page).each(&block) end |
#invoke(method_name) ⇒ Object
17 18 19 |
# File 'lib/versatile_rjs/proxy/element_set_proxy.rb', line 17 def invoke(method_name) raise NotImplementedError, "invoke must be implemented in each class." end |