title: How can I assign multiple values to a hash key?
body: <p>For the sake of convenience I am trying to assign multiple values to a hash key in Ruby. Here's the code so far</p>
  
  <pre><code>myhash = { :name =&gt; ["Tom" , "Dick" , "Harry"] }
  </code></pre>
  
  <p>Looping through the hash gives a concatenated string of the 3 values</p>
  
  <p>Output:</p>
  
  <pre><code>name : TomDickHarry
  </code></pre>
  
  <p>Required Output:</p>
  
  <pre><code>:name =&gt; "Tom" , :name =&gt; "Dick" , :name =&gt; "Harry"
  </code></pre>
  
  <p>What code must I write to get the required output?</p>