I have an array of hex characters that is > 8000 characters, and I need to do some operation on every 6 characters in the array.
Ranges in ruby have a really cool step feature:
(1..100).step(6) do //etc....
string.split("").step(6) do //etc...
require 'enumerator' # if pre-Ruby1.9 string.split("").each_slice(6) do |ary| # ary is a 6-length array, and this is executed for every block of 6 characters end