All pastes #394673 Raw Edit

Mine

public text v1 · immutable
·published 2007-03-14 14:38 UTC
rendered paste body
class Array
  def every(x)
    (size/x).times { |i| i *= x; yield(self[i..(i+x-1)]) }
  end
end