From: Gavri Fernandez Date: 2005-08-26T22:33:00+09:00 Subject: Re: symbols vs. strings On 8/26/05, Mark Volkmann wrote: > Just to clarify, are you saying that ... > > 1) If I want my code that accepts a Hash parameter to allow keys to be > either Symbols or Strings, I need to use an approach like you showed > above. > > 2) Many existing Ruby classes do this. Rails makes use of http://api.rubyonrails.org/classes/HashWithIndifferentAccess.html I don't think it's very common. -- gavri http://www.livejournal.com/users/ga_woo