From: "Jan E." Date: 2012-11-06T22:25:20+09:00 Subject: Re: How to merge two or more hashes in to one? Hi, this is a very special form of "merging", so I don't think there's a built-in method for this. But you can use the block form of Hash#merge: #------------------------------------- foo = {"luxuy" => ["Mercedes", "BMW"], "sport" => ["Ferrari"]} bar = {"luxuy" => ["BMW", "Bentley"], "sport"=>["Lamborghini"]} merg = foo.merge bar do |_, arr_1, arr_2| arr_1 + arr_2 end p merg #------------------------------------- -- Posted via http://www.ruby-forum.com/.