title: Ruby, how to parse csv file with multiple row data type
body: <p>so given this csv file</p>
  
  <pre><code>User Data,,
  name,age,gender
  jhon,15,male
  nat,14,female
  ,,,
  Item Data,,
  id,name,
  1,book,
  </code></pre>
  
  <p>what i want is it will looks like</p>
  
  <pre><code>user_data=[{name: 'jhon', age: '15', gender: 'male'},{}]
  item_data=[{id: 1, name: 'book'},{}]
  </code></pre>
  
  <p>how do i do that on ruby, as far as i know is using <code>CSV</code> library. but it parse only the first row to be detected as header. but in this case i have 2 kind of header which is <code>user data</code> and <code>item data</code>. im using ruby on rails to input the csv file to databases using rake task</p>