Magic Numbers in Ruby & How You Make Them Disappear Magic numbers are hardcoded unexplained values, avoid them using Ruby constants.