title: Split a CSV-style string with Ruby
body: <p>I have data from a CSV file that's already loaded into memory. So I might have something like this:</p>
  
  <pre><code>csv_string = 'Value 1,Value 2,"Hey, it\'s value 3!",Value 4 has "some quotes"'
  </code></pre>
  
  <p>Obviously I won't want to do <code>csv_string.split(",")</code>. Since it seems like splitting a CSV-style string this way might be a not-all-that-uncommon need, I was wondering if there's a solution already out there.</p>