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\" ,
You've created a hash with the symbol name as the key and an array with three elements as the value, so you'll need to iterate through myhash[:name] to get the individual array elements.
myhash[:name]