From: "Mark J. Reed" Date: 2003-09-03T06:13:29+09:00 Subject: Re: show me the ruby way On Wed, Sep 03, 2003 at 05:17:41AM +0900, nord ehacedod wrote: > Is there an obvious way to implement this > initializtion within the SpecialCaseHash class: > > def new > super.new {|h, k| h[k] = Hash.new(0) } > end I think that should be just super, not super.new: def new super { |h, k| h[k] = Hash.new { |h, k| h[k] = 0 } } end -Mark