From: Matthias Georgi Date: 2004-05-14T16:37:13+09:00 Subject: Re: [RCR] subclasses of string as hash keys On Fri, 14 May 2004 12:35:32 +0900, wrote: > Hi, > > At Fri, 14 May 2004 06:50:49 +0900, > Matthias Georgi wrote in [ruby-talk:100193]: >> example: >> >> class A < String; end >> >> hash = {} >> > hash[ A.new('x').freeze ] = nil > p hash.keys.first.class > => A > Oh yes, didn't know that. -- Matthias Georgi matti_g@gmx.de