From: "Luke A. Kanies" Date: 2004-06-02T12:44:17+09:00 Subject: Equality of constants If I run the following code: if Hash === Hash puts "yup" end I get no output. From what I can tell, this means that I can't test constants in a when statement. I need something like the following: array.each { |member| case member.class when Object::Subclass next end stuff } and if I can't test the equality of constants with === (which is what 'when' uses; why is it a separate operator?), then I can't use them as values in a when statement. How do I do this? Thanks, Luke -- I don't always know what I'm talking about, but I'm always pretty much convinced that I'm right. -- musician Mojo Nixon --------------------------------------------------------------------- Luke Kanies | http://abstractive.org | http://reductiveconsulting.com