Mega Code Archive

 
Categories / Ruby / Reflection
 

To determine the name of the superclass

myString = "asdf" myString.class.superclass # => Object String.superclass # => Object