The "include" statement is for including a module into a class:
1. module Bar
2. end
3.
4. class Foo
5. include Bar
6. end
The "require" statement loads a ruby file.
Just loading a file does not include it into a class, so that's why you need include as well.
1. module Bar
2. end
3.
4. class Foo
5. include Bar
6. end
The "require" statement loads a ruby file.
Just loading a file does not include it into a class, so that's why you need include as well.