From: Gavin Sinclair Date: 2002-09-24T06:08:48+09:00 Subject: Re: Checking hash key's and values, with case insensitivity ----- Original Message ----- From: "Yukihiro Matsumoto" > > |How can I check hash keys and values without case sensitivity? > |Specifically I'm referring to the hash ".has_key?" and ".has_value?" > |methods. I believe these are case sensitive by default. > > Why not simply > > h.key?(k.upcase) > h.value?(v.upcase) > > matz. This has got to be the best solution, as it takes account of the important fact that noone else has yet mentioned: Hash keys are not necessarily Strings. Gavin