method
inject
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActionView::Helpers::JavaScriptCollectionProxy
inject(variable, memo, &block)
public
Hide source
# File actionpack/lib/action_view/helpers/prototype_helper.rb, line 777 def inject(variable, memo, &block) enumerate :inject, :variable => variable, :method_args => [memo], :yield_args => %(memo value index), :return => true, &block end