From: Han Holl Date: 2002-06-09T23:38:01+09:00 Subject: Re: Hash#===() ts wrote: >>>>>>"H" == Han Holl writes: >>>>>> >>>>>> > >H> class Hash >H> alias === has_key? >H> end > > I've not understood you want to write this ? > > hash = {"aa" => 12} > case "aa" > when hash > puts "ok" > end > > > >Guy Decoux > > > > Yes, like a test for set membership. It seems intuitive to me. Han