Last active
July 30, 2017 01:26
-
-
Save gabidavila/ccb9f9edbae866e775c513fab6ca4657 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
# without the prepend, extend or include | |
Car.ancestors | |
# => [Car, Vehicle, Object, PP::ObjectMixin, Kernel, BasicObject] | |
# with the extend | |
Car.ancestors | |
# => [Car, Vehicle, Object, PP::ObjectMixin, Kernel, BasicObject] | |
# with the include | |
Car.ancestors | |
# => [Car, Paintable, Vehicle, Object, PP::ObjectMixin, Kernel, BasicObject] | |
# with the prepend | |
Car.ancestors | |
# => [Paintable, Car, Vehicle, Object, PP::ObjectMixin, Kernel, BasicObject] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment