From: Kornelius Kalnbach Date: 2006-11-20T20:13:36+09:00 Subject: Re: type information > You can do comparisons like: > if variable_name.class == "String" then do this etc. Sorry to be the smartass ^^ but because Ruby is such a great language, #class gives you the class object itself, not only its name. So that would be: obj.class == String Mostly you want to have this instead: obj.is_a? String or even obj.instance_of? String The mighty ri has further info. [murphy]