Skip to content

Instantly share code, notes, and snippets.

@chaboo
Last active January 3, 2016 18:39
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 chaboo/8503224 to your computer and use it in GitHub Desktop.
Save chaboo/8503224 to your computer and use it in GitHub Desktop.
Learning Ruby
include: adds methods from the provided Module to the object
extend: calls include on the singleton class of the object
- http://ficate.com/blog/2012/01/17/explaining-include-and-extend/
- http://confreaks.com/videos/825-mwrc2008-ruby-internals
- http://stackoverflow.com/questions/156362/what-is-the-difference-between-include-and-extend-in-ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment