Here's an option:

"a testy string of testyness".split('').each_slice(3) do |s|
puts s.join
end

-- 
Posted via http://www.ruby-forum.com/.