I find Ruby's
line.split.each do |word|
I'm not sure I quite understand your question, but if you want to split the lines on tab characters, you can specify that as an argument to split:
or you can specify it as a regular expression:
Each basically just iterates through all the items in an array, and split produces an array from a string.