| Start |
|---|
A simple mixin with include Now Note that how a mixin is used in a class depends on how it is added:
|
| Modules and Class Composition You can use Modules to build more complex classes through composition. The
|
| Module as Namespace Modules can contain other modules and classes: |
| A simple mixin with extend A mixin is just a module that can be added (mixed in) to a class. one way to do it is with the extend method. The SyntaxRemarksModule names in Ruby are constants, so they have to start with a capital letter. |
Read Article
https://develop.horje.com/learn/1434/reference