From: "Iñaki Baz Castillo" Date: 2008-04-23T17:02:29+09:00 Subject: Re: Extending Hast class with custom [] []= methods 2008/4/23, Chris Shea : > But he asking for case-insensitivity. If a key is created with > uppercase letters, you're out of luck. And if you look for a value > for a non-string key, that's no good either: Yeah, finally I've done: class InsensitiveHash < Hash def [](key) find {|h| h[0] =~ /^#{key}$/i }[1] end end It works. :) -- Iñaki Baz Castillo