迷茫2017-04-24 09:13:51
All values in Ruby are objects, and there is no such thing as variables or constants. There is only a warning when you modify the reference content with a "constant" defined in uppercase letters.
So, you can just use ==
to compare directly.