Ruby Forum Ruby-core > [Ruby 1.9 - Bug #419] (Open) [PATCH] Hash#default_proc=

Posted by Giuseppe Bilotta (Guest)
on 12.08.2008 01:13
(Received via mailing list)
Issue #419 has been reported by Giuseppe Bilotta.

----------------------------------------
Bug #419: [PATCH] Hash#default_proc=
http://redmine.ruby-lang.org/issues/show/419

Author: Giuseppe Bilotta
Status: Open
Priority: Normal
Assigned to:
Category: core
Target version:


The attached patch implements Hash#default_proc=, a method to change the 
default proc for hashes after creation. I decided to implement this 
feature as a follow-up to a discussion on the IRC channel. The patch was 
tested against current svn trunk. This being my first contribution to 
this excellent project, I hope I didn't get too many things wrong :)