2011/8/14 Bartosz Dziewoski <matma.rex / gmail.com>: > 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 <ibc / aliax.net>