use Object's is_a? or kind_of? methods (they are synonyms)
myString = "asdf" puts myString.is_a? String # => true puts myString.kind_of? String # => true