From: "Iñaki Baz Castillo" Date: 2009-02-20T06:31:09+09:00 Subject: Re: Creating InsensitiveHash in C El Jueves, 19 de Febrero de 2009, Rick DeNatale escribió: > class InsensitiveHash >     def initialize >        @hash = {} >     end > >    def [](key} >       @hash[key.downcase] >    end > >    def []=(key, value) >       @hash[key.downcase] = value >    end > end > > And yes, I'd recommend having the InsensitiveHash have an instance of Hash > rather than being a subclass of Hash. The fact is I already have something as above, but I wonder if using a new Ruby C native class would be *really* faster. Thanks a lot. -- Iñaki Baz Castillo