From: "David A. Black" Date: 2009-01-13T06:34:54+09:00 Subject: Re: what's the rules re whether a Hash can use either a Symbol or String to reference the value??? Hi -- On Tue, 13 Jan 2009, Greg Hauptmann wrote: > thanks guys - interesting question for the Rails guys is whether you have to > explicitly ask for a HashWithIndifference, i.e. just wondering whether it's > possible in Rails to ask for a Hash but really get a monkey patched > HashWithIndiffrence back without it being obvious... HashWithIndifferentAccess is just a subclass of Hash. I don't think it can be described as monkey patched, though I'm never sure what that term means. Some methods return instances of it; some return instances of Hash. David -- David A. Black / Ruby Power and Light, LLC Ruby/Rails consulting & training: http://www.rubypal.com Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2) http://www.wishsight.com => Independent, social wishlist management!