Last active
August 29, 2015 14:17
-
-
Save arvindvyas/cf8f17874c9628473b2c to your computer and use it in GitHub Desktop.
object and class in ruby
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
What is the class of Object ? | |
2.1.0 :013 > Object.class | |
=> Class | |
What is superclass of Module? | |
2.1.0 :014 > Module.superclass | |
=> Object | |
What is the class of Class? | |
2.1.0 :015 > Class.class | |
=> Class | |
What is the superclass of Class? | |
2.1.0 :027 > Class.superclass | |
=> Module | |
What is superclass of Object? | |
2.1.0 :029 > Object.superclass | |
=> BasicObject | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment