Ruby Ruby Foundations Modules Extend and Include: Part 1

"Extending" the say_hello method is like taking local method and making it global?

I'm really not sure I quite understand it but thats what I have.

1 Answer

Jason Seifer
Jason Seifer
Treehouse Guest Teacher

Hey Cory DeGarmo what we're doing is showing two different ways of augmenting one class or variable with a module. Basically you use include to augment a class with instance methods and extend for class methods. Check out this article for a more in depth explanation.