From: khabibiuf@... (Khurram) Date: 2002-10-28T23:09:49+09:00 Subject: How to invoke === using custom classes and case statements. Hi all, I was trying to develop a definition for the === operator on a custom class I made. It seems like that when I use case statements on an object of the class the === operator does not get invoked. What could I be doing wrong? Here's how I'm using it. a = MyClass.new() case a when 'hello';printf "Blah....\n" when 'bye' ; printf "Blah....Blah...\n" else; printf "Blah... Blah... Blah...\n" end I know I have the === operator correctly defined.. Because when I explicitly use it as follows then it works: if a === 'hello' printf "Blah....\n" elsif a === 'bye' printf "Blah....Blah...\n" else printf "Blah... Blah... Blah...\n" end Any clues on what I'm doing wrong? Thanks.