You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
phedders edited this page Sep 12, 2010
·
5 revisions
>> a=Mhash.new({:a=>"This is a",:sub=>{:a=>"two"}})
>> b=Mhash.new({:b=>"This is b",:sub=>{:b=>"two"}})
>> a
=> <Mhash a="This is a" sub=<Mhash a="two">>
>> b
=> <Mhash b="This is b" sub=<Mhash b="two">>
>> a.deep_update b
=> {"sub"=><Mhash b="two">, "b"=>"This is b"}
>> a
=> <Mhash a="This is a" b="This is b" sub=<Mhash b="two">>
I think that sub should be = but it’s not… am I missing what deep_update should do?