Hal Fulton <hal9000 / hypermetrics.com> wrote:
> George Moschovitis wrote:
> > Hmm my example was wrong, what I wanted to write is:
> > 
> > def myfunc(klass)
> >         case klass.name
> >                 when Fixnum.name
> >                         puts :Fixnum

How about

case klass.name.to_sym
  when :Fixnum
    ...

martin