I have a set of numbers 123456789
I am writing a loop, so for every 3 numbers/characters it insert a comma, and then starts a new line.
What type of loop would I use for this? And how do I tell ruby for every 3 numbers? "123456.each_char.limit(3)"? I I know limit isnt correct but hopefully im getting the idea accross.