Ruby Language Constants

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

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.



Got any Ruby Language Question?