Class: VersatileRJS::Proxy::ElementSetProxy

Inherits:
VersatileRJS::Proxy show all
Includes:
FrameworkDependent, Selectable
Defined in:
lib/versatile_rjs/proxy/element_set_proxy.rb

Instance Method Summary collapse

Methods included from FrameworkDependent

included

Methods included from Selectable

#select

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

Raises:

  • (NotImplementedError)


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