From: Robert Klemme Date: 2009-04-30T20:15:37+09:00 Subject: Re: Defining a default proc for Hash 2009/4/30 Srijayanth Sridhar : > Yes, I did. All that tells me is that it isn't possible to set a default > proc using default or any other calls. Which is why I asked, if there is any > *other* way to do it. If not, it simply can't be done. Of course, it would > also be nice if someone could explain the rationale for not wanting to alter > the default proc once it has been defined. It's there - but not in 1.8.*: 13:14:34 JavaProducts_NGCP_dev_R1.0_PoA$ allruby -e 'puts Hash.instance_methods.grep(/proc/)' CYGWIN_NT-5.1 padrklemme1 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin] default_proc ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-cygwin] default_proc default_proc= 13:14:51 JavaProducts_NGCP_dev_R1.0_PoA$ Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/