p String.ancestors # => [String, Enumerable, Comparable, Object, Kernel]
p Array.ancestors # => [Array, Enumerable, Object, Kernel]
class MyArray < Array
end
p MyArray.ancestors # => [MyArray, Array, Enumerable, Object, Kernel]
p Object.ancestors # => [Object, Kernel]
class MyClass
end
p MyClass.ancestors # => [MyClass, Object, Kernel]
|