method
method_missing
rails latest stable - Class:
ActionView::Helpers::JavaScriptCollectionProxy
method_missing(method, *arguments, &block)private
No documentation available.
# File actionpack/lib/action_view/helpers/prototype_helper.rb, line 800
def method_missing(method, *arguments, &block)
if ENUMERABLE_METHODS.include?(method)
returnable = ENUMERABLE_METHODS_WITH_RETURN.include?(method)
variable = arguments.first if returnable
enumerate(method, {:variable => (arguments.first if returnable), :return => returnable, :yield_args => %(value index)}, &block)
else
super
end
end