Module: VersatileRJS::Proxy::ElementByIdProxy
- Includes:
- FrameworkDependent
- Included in:
- Jquery::ElementByIdProxy
- Defined in:
- lib/versatile_rjs/proxy/element_by_id_proxy.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
8 9 10 11 12 |
# File 'lib/versatile_rjs/proxy/element_by_id_proxy.rb', line 8 def self.included(base) base.class_eval do attr_accessor :id end end |
Instance Method Details
#initialize(page, id) ⇒ Object
14 15 16 17 |
# File 'lib/versatile_rjs/proxy/element_by_id_proxy.rb', line 14 def initialize(page, id) self.id = id super(page, statement_for_id(id)) end |