xxxxxxxxxx
class Level1; end
class Level2 < Level1; end
class Level3 < Level2; end
Level1.superclass # Object
Level2.superclass # Level1
Level3.superclass # Level2
Level3.ancestors
# [Level3, Level2, Level1, Object, Kernel, BasicObject]
xxxxxxxxxx
class A
end
class B < A
end
B.superclass # => A
B.superclass.name # => "A"