Modules
suggest changeSyntax
- Declaration
module Name;
any ruby expressions;
end
Remarks
Module names in Ruby are constants, so they have to start with a capital letter.
module foo; end # Syntax error: class/module name must be CONSTANT
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents