Mega Code Archive

 
Categories / Ruby / Reflection
 

Use Objects is_a or kind_of methods (they are synonyms)

myString = "asdf" puts myString.is_a? String # => true puts myString.kind_of? String # => true