Skip to content

Instantly share code, notes, and snippets.

@gabidavila
Last active Jul 30, 2017
Embed
What would you like to do?
# 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