-
-
Save edisonywh/e4efd99fe43b5523c46d6ad90a5b26e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2.3.1 :001 > Foo.ancestors | |
=> [Foo, Object, Kernel, BasicObject] | |
2.3.1 :002 > Foo.superclass #superclass allow us to see what class the receiver inherited from. AKA, the parent of current class. | |
=> Object | |
2.3.1 :003 > Object.superclass | |
=> BasicObject | |
(Kernel is a Module, you could quickly verify it by doing Kernel.class) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment