Crystal Medium · Lesson 2

Modules: include, extend and namespaces

Share behaviour with include, add class-level methods with extend, group code under a namespace, and build utility modules with extend self.

Lessons · Crystal Medium · Lesson 2 of 10

Modules: include, extend and namespaces

Share behaviour with include, add class-level methods with extend, group code under a namespace, and build utility modules with extend self.

Illustration for Crystal
Share behaviour with include, add class-level methods with extend, group code under a namespace, and build utility modules with extend self.