"This is a constant; its value can't be changed" error

That’s a good solution for some cases, thanks, Norman. In my case, the constants only apply within their particular method, which is an overloaded constructor - they’re different in each variation of the constructor, so it would be messy to clutter the class or a module with all the different values. I just made them variables, and they go out of scope outside the method so don’t take significant memory. I could also of course just use literals within the methods, but giving them names makes for better readability.