Module: VersatileRJS
- Defined in:
- lib/versatile_rjs.rb,
lib/versatile_rjs/page.rb,
lib/versatile_rjs/proxy.rb,
lib/versatile_rjs/utils.rb,
lib/versatile_rjs/container.rb,
lib/versatile_rjs/proxy/jquery.rb,
lib/versatile_rjs/proxy/each_proxy.rb,
lib/versatile_rjs/proxy/selectable.rb,
lib/versatile_rjs/template_handler.rb,
lib/versatile_rjs/proxy/element_proxy.rb,
lib/versatile_rjs/proxy/selector_proxy.rb,
lib/versatile_rjs/proxy/expression_proxy.rb,
lib/versatile_rjs/proxy/default_responder.rb,
lib/versatile_rjs/proxy/element_set_proxy.rb,
lib/versatile_rjs/proxy/jquery/each_proxy.rb,
lib/versatile_rjs/proxy/jquery/selectable.rb,
lib/versatile_rjs/proxy/jquery/element_set.rb,
lib/versatile_rjs/proxy/element_by_id_proxy.rb,
lib/versatile_rjs/proxy/framework_dependent.rb,
lib/versatile_rjs/proxy/jquery/element_proxy.rb,
lib/versatile_rjs/proxy/jquery/selector_proxy.rb,
lib/versatile_rjs/proxy/jquery/element_set_proxy.rb,
lib/versatile_rjs/proxy/jquery/element_by_id_proxy.rb,
lib/versatile_rjs/railtie.rb
Defined Under Namespace
Modules: Container, Utils Classes: Page, Proxy, Railtie, TemplateHandler
Constant Summary collapse
- VERSION =
'0.1.0'
Class Attribute Summary collapse
-
.debug_rjs ⇒ Object
(also: debug_rjs?)
Returns the value of attribute debug_rjs.
-
.default_javascript_framework ⇒ Object
Returns the value of attribute default_javascript_framework.
-
.javascript_framework ⇒ Object
Returns the value of attribute javascript_framework.
Class Method Summary collapse
Class Attribute Details
.debug_rjs ⇒ Object Also known as: debug_rjs?
Returns the value of attribute debug_rjs.
14 15 16 |
# File 'lib/versatile_rjs.rb', line 14 def debug_rjs @debug_rjs end |
.default_javascript_framework ⇒ Object
Returns the value of attribute default_javascript_framework.
14 15 16 |
# File 'lib/versatile_rjs.rb', line 14 def default_javascript_framework @default_javascript_framework end |
.javascript_framework ⇒ Object
Returns the value of attribute javascript_framework.
14 15 16 |
# File 'lib/versatile_rjs.rb', line 14 def javascript_framework @javascript_framework end |
Class Method Details
.framework_module ⇒ Object
20 21 22 |
# File 'lib/versatile_rjs.rb', line 20 def self.framework_module javascript_framework.to_s.camelcase end |
.implementation_class_of(mod) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/versatile_rjs.rb', line 24 def self.implementation_class_of(mod) class_name_tree = mod.name.split('::') class_dirnames = class_name_tree[0...-1] class_basename = class_name_tree[-1] implementation_class_name = [class_dirnames, framework_module, class_basename].flatten.join('::') implementation_class_name.constantize end |
.require_framework ⇒ Object
36 37 38 |
# File 'lib/versatile_rjs.rb', line 36 def self.require_framework require "versatile_rjs/proxy/#{javascript_framework}" end |