I find Ruby's each function a bit confusing. If I have a line of text, an each loop will give me every space-delimited word rather than each individual character.
So what's the best way of retrieving sections of the string which are delimited by a tab character. At the moment I have:
line.split.each do |word|
...
end
but that is not quite correct.