title: How do you loop through a multiline string in Ruby?
body: <p>Pretty simple question from a first-time Ruby programmer.</p>
  
  <p>How do you loop through a slab of text in Ruby? Everytime a newline is met, I want to re-start the inner-loop.</p>
  
  <pre><code>def parse(input)
      ...
  end
  </code></pre>