method
method_missing

method_missing(method, *arguments, &block)
private
Hide source
# File actionpack/lib/action_view/helpers/prototype_helper.rb, line 1252 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 => %w(value index)}, &block) else super end end