lib/05_variables_and_constants/constants.rb
# Constants defined in a class/module are available within that class/module and outside the class with the scope operator ::
Constants defined in a class/module are available within that class/module and outside the class with the scope operator :.
Constants defined in a class / module are available within that class / module and outside the class with the scope operator : .
def my_method
    puts GLOBAL_CONSTANT
    puts MY_CONSTANT 
  end
def my_method puts GLOBAL_CONSTANT puts MY_CONSTANT end
Constants defined in a class/module are available within that class/module and outside the class with the scope operator ::
Constants defined in a class / module are available within that class / module and outside the class with the scope operator ::
# Constants cannot be defined in methods # We don't need MyClass:: here since we are inside the class