Ruby 1.8.7+ products.each_slice(3).with_index { |products_by_three, index| puts products_by_three, index }. Taggedeach_sliceenumerablerubywith_index ...
確定! 回上一頁