Skip to content

Instantly share code, notes, and snippets.

@gabidavila
Last active July 30, 2017 01:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabidavila/ccb9f9edbae866e775c513fab6ca4657 to your computer and use it in GitHub Desktop.
Save gabidavila/ccb9f9edbae866e775c513fab6ca4657 to your computer and use it in GitHub Desktop.
# 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