From: Siep Korteling Date: 2008-05-10T08:42:14+09:00 Subject: Re: How to re-replace Hash default value behaviour? Craig Demyanovich wrote: > Reset the default. > >>> a = Hash.new(0) > => {} >>> a["joe"] > => 0 >>> a.default = nil > => nil >>> a["joe"] > => nil > > Regards, > Craig Thanks all. When i'm stuck, the solution is almost always easier then I imagined. Regards, Siep -- Posted via http://www.ruby-forum.com/.