From: Hammed Malik Date: 2006-08-14T00:31:54+09:00 Subject: How to update nested Hashes? ------=_Part_140019_24285120.1155483111544 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Given two nested Hashes, is there an easy way to update one with the other? a = {:top => {:foo => {:a => 1}, :bar => {:b => 2}}} b = {:top => {:bar => {:c => 3}}} what I'd like is a.nested_update(b) => {:top => {:foo => {:a => 1}, :bar => {:c => 3}}} Thanks Hammed ------=_Part_140019_24285120.1155483111544--