Object has a super class in Ruby 1.9 : superclass « Reflection « Ruby






Object has a super class in Ruby 1.9


# Ruby 1.9 only
Object.superclass             # BasicObject: Object has a superclass in 1.9
BasicObject.superclass        # nil: BasicObject has no superclass

 








Related examples in the same category

1.Get superclass
2.Get class and superclass