title: Ruby 1.8, Getting all Hash values related to a specific key
body: <p>I have the following code which takes a CSV file and feed it into a hash.  Here I want to list all the names of songs for a specific genre. Like, all the "Western" songs.  This code only gives me one song for a specific genre.  Does anyone have suggestions on how I can get it to show all the Western songs (for example)</p>
  
  <pre><code>def self.musicGenre()
    puts "Ballad,Blues,Bluegrass,Popular,Western"
    require 'csv'
    @musicGenreHash={} #create the hash for musicName, blank
    CSV.foreach('musiclist.txt')do |row| 
      name,genre,composer,location = row 
      @musicGenreHash[genre]=name
    end
  
      def self.genre(songGenreChoice)
        @musicGenreHash[songGenreChoice]
      end
  
    puts "Please type in the genre of your choice:"
      songGenreChoice=gets.chomp
  
      puts "Thesearethesongsavailable in the#{songGenreChoice} genre:"+genre("#{songGenreChoice}").inspect
   end #musicGenre
  </code></pre>