My second attempt:

input = ['a','b','c','d','e','f','g']
targ = { 0 => targ_one=[], 1 => targ_two=[], 2 => targ_three=[] }

input.each_with_index do |elem, idx|
  ii = idx.divmod(3)[1]
  targ[ii] << elem
end


- Axel