From: Stefan Rusterholz Date: 2007-05-27T23:24:00+09:00 Subject: Re: Tricky problem with === Erwin Abbott wrote: > case x > when Array puts "Array" > when Proxy puts "Proxy" > end Ugly, but you could try: puts case [x.class] when [Array]: "Array" when [Proxy]: "Proxy" else "Hu?" end Regards Stefan -- Posted via http://www.ruby-forum.com/.