From: "Iñaki Baz Castillo" Date: 2011-08-15T01:06:14+09:00 Subject: Re: How to use "case" to match class names? (=== not so funny) 2011/8/14 Bartosz Dziewoński : > I don't think there's a better solution than what you already have. > There are different ones, of course - good ol' if..elsif..else chain, > a hash with classes being its keys ({String=>"I'm String class", > Fixnum=>"I'm an integer"}[klass] || "I'm nothing") - but I wouldn't > say they are better. > > Maybe something else could be redone? Where does that class come from? I need "klass" to hold a class name, not an instance. That cannot be changed. Thanks. -- Iñaki Baz Castillo