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\" ,
myhash.each_pair {|k,v| v.each {|n| puts "#{k} => #{n}"}} #name => Tom #name => Dick #name => Harry
The output format is not exactly what you need, but I think you get the idea.