Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: how do I convince Hash that two keys are the same?: msg#00051

Subject: Re: how do I convince Hash that two keys are the same?
On Mar 13, 2005, at 9:45 PM, Sam Roberts wrote:
  class Str < String
    def hash; self.downcase.hash; end # <- this doesn't look recursive

try to_s.downcase.hash

Alex





<Prev in Thread] Current Thread [Next in Thread>