Class: ActionView::Helpers::JavaScriptElementCollectionProxy

Inherits:
JavaScriptCollectionProxy show all
Defined in:
lib/action_view/helpers/prototype_helper.rb

Overview

:nodoc:\

Constant Summary

Constants inherited from JavaScriptCollectionProxy

ActionView::Helpers::JavaScriptCollectionProxy::ENUMERABLE_METHODS, ActionView::Helpers::JavaScriptCollectionProxy::ENUMERABLE_METHODS_WITH_RETURN

Instance Attribute Summary

Attributes inherited from JavaScriptCollectionProxy

#generator

Instance Method Summary collapse

Methods inherited from JavaScriptCollectionProxy

#each_slice, #grep, #in_groups_of, #inject, #pluck, #zip

Constructor Details

#initialize(generator, pattern) ⇒ JavaScriptElementCollectionProxy

Returns a new instance of JavaScriptElementCollectionProxy.



1298
1299
1300
# File 'lib/action_view/helpers/prototype_helper.rb', line 1298

def initialize(generator, pattern)
  super(generator, "$$(#{::ActiveSupport::JSON.encode(pattern)})")
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActionView::Helpers::JavaScriptCollectionProxy