Ruby: Module Global Variables

Module level global variables are useful for encapsulation and isolation.

module Site
  @@name = "a_global"

  def self.setName(value)
    @@name = value
  end

  def self.name
    @@name
  end
end

References

https://stackoverflow.com/questions/5690458/create-module-variables-in-ruby