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