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