Class: VersatileRJS::Proxy::Jquery::ElementProxy
- Inherits:
-
ElementProxy
- Object
- VersatileRJS::Proxy
- ElementProxy
- VersatileRJS::Proxy::Jquery::ElementProxy
- Defined in:
- lib/versatile_rjs/proxy/jquery/element_proxy.rb
Direct Known Subclasses
Constant Summary collapse
- METHODS =
{ :replace_html => :html, :replace => :replaceWith, :insert_html => { :top => :prepend, :bottom => :append }, :value => :val, :value= => :val, :select => :find }.freeze
Class Method Summary collapse
Methods inherited from ElementProxy
#args, #hide, #inner_html=, #insert_html, #js_method, #remove, #replace, #replace_html, #show, #toggle, #value, #value=
Methods included from Selectable
Methods included from FrameworkDependent
Methods inherited from VersatileRJS::Proxy
#call, #initialize, #method_missing, #to_json
Constructor Details
This class inherits a constructor from VersatileRJS::Proxy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class VersatileRJS::Proxy
Class Method Details
.args(method, *args) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/versatile_rjs/proxy/jquery/element_proxy.rb', line 26 def self.args(method, *args) case method when :insert_html args.second else args end end |