Ruby Language Modules

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9

Syntax

  • 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


Got any Ruby Language Question?