From: Jon Garvin Date: 2006-12-27T03:18:12+09:00 Subject: Re: Hash with two identical keys? Looks to me that your keys are arrays. My guess is that p POOLS[self].keys[0].class will return Array, instead of Symbol, which is what you're probably expecting. So, the hash doesn't have identical keys. It has two different keys, each of which is a different array with identical members. Try p POOLS[self].keys[0].object_id p POOLS[self].keys[1].object_id and you'll see the keys really are different. Trans wrote: > >From Facets' multiton.rb (which is primarily Floran Franks' work), I'm > getting somthing that doesn't make any sense: > > POOLS[self] ||= {} > p POOLS[self].class > p POOLS[self].keys > > Is outputing: > > Hash > [[{:strip_comments=>false}], [{:strip_comments=>false}]] > > How can two identical keys be in a hash? > > T. > > > >