oop/scope_resolution/scope_resolution.rb

tests/_examples/oop/scope_resolution/scope_resolution.rb in the metorex repository.

# Scope resolution with ::
class Config
  VERSION = 1
  MAX_SIZE = 100
end

puts Config::VERSION
puts Config::MAX_SIZE

Output:

1
100