Ruby LanguageConstants


Syntax

  • MY_CONSTANT_NAME = "my value"

Remarks

Constants are useful in Ruby when you have values that you do not want to be mistakenly changed in a program, such as API keys.