need to loop it as well and do the test on input keeping count if I'm
reading this correct.

while is a good option or ruby has an abstraction of the construct called
interestingly enough loop{ }

~Stu



On Sat, Jul 6, 2013 at 2:32 AM, Joel Pearson <lists / ruby-forum.com> wrote:

> 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/.
>
>