Hi, I'd like to extend Hash class [] and []= methods in order to find a key 
with case insensitive. This is:


- The actual Hash [] behaviour:

{"a"=>1,"b"=>2}["a"]
=> 1
{"a"=>1,"b"=>2}["A"]
=> nil

- The beaviour I look for:

{"a"=>1,"b"=>2}["a"]
=> 1
{"a"=>1,"b"=>2}["A"]
=> 1


But I can't modify [] method since it's Ruby core written in C:

----------------------
VALUE
rb_hash_aref(hash, key)
    VALUE hash, key;
{
    VALUE val;

    if (!st_lookup(RHASH(hash)->tbl, key, &val)) {
        return rb_funcall(hash, id_default, 1, key);
    }
    return val;
}
-----------------------


How could I do it?


-- 
Iaki Baz Castillo