public Method

JavaScriptCollectionProxy.each_slice(variable, number, &block)

There's no documentation for this item.

Source Code

# File action_view/helpers/prototype_helper.rb, line 1173
def each_slice(variable, number, &block)
  if block
    enumerate :eachSlice, :variable => variable, :method_args => [number], :yield_args => %w(value index), :return => true, &block
  else
    add_variable_assignment!(variable)
    append_enumerable_function!("eachSlice(#{number.to_json});")
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.