title: Adding values to existing (Hash)key, without over-writing the existing value(s)?
body: <p>Simplified version:</p>
  
  <pre><code>ar=['name: Joe', 'name: Jack', 'name: Jill']
  
  hash={}
  
  ar.each{|line| if line.include?('name'); hash['name'] = line;end;}
  
  puts hash
  </code></pre>
  
  <p>My aim is to add all the elements in the array to the 'name'-key, but my code seeme to over-write the existing value.</p>
  
  <p>Is'nt it possible to have multiple values assigned to one single key? I'd rather not use an array as value.</p>
  
  <h2>Edit:</h2>
  
  <p>I realized that my first example did'nt cover the whole problem:</p>
  
  <p>extend the array to:
      ar=['name: Joe', 'name: Jack', 'name: Jill', age: 29', 'age: 32', 'misc: Great weather']</p>
  
  <p>What i'd is to have the 'name's grouped under the key 'name', and so on.</p>
  
  <p>The number of attributes/keys is not known beforehand, so the arrays will have top be made dynamiclly.</p>