From: George Moschovitis Date: 2004-10-11T19:04:38+09:00 Subject: Re: [Q] case based on object class Hmm my example was wrong, what I wanted to write is: def myfunc(klass) case klass.name when Fixnum.name puts :Fixnum when Float.name puts :Float ... default puts :Object end end myfunc(obj.class) Now this === doesnt work :( I am sure the solution is obvious, but I would appreciate some help. regards, George Moschovitis -- www.navel.gr | tel: +30 2106898050 | fax: +30 2106898437 Navel does not accept liability for any errors, viruses or omissions in the contents of this message. The full corporate policy is available on our site. have fun: www.joy.gr