For the sake of convenience I am trying to assign multiple values to a hash key in Ruby. Here's the code so far
myhash = { :name => ["Tom" , "Dick" , "Harry"] }
Looping through the hash gives a concatenated string of the 3 values
**Output**
name : TomDickHarry
**Required Output**
:name => "Tom" , :name => "Dick" , :name => "Harry"
What code must I write to get the required output?
Help is appreciated.