Ruby: using modules as namespaces

Example:

module ModuleA
  class MyClass
    def self.my_method
      "Hello from ModuleA!"
    end
  end
end
Modules in Ruby can be used as namespaces.

Solution:

puts ModuleA::MyClass.my_method  // Outputs: Hello from ModuleA!

Beginner's Guide to Ruby