oop/scope_resolution/scope_resolution_parens.rb

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

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

puts(Config::VERSION)
puts(Config::MAX_SIZE)

Output:

1
100