Created
June 1, 2011 20:51
-
-
Save aberant/1003283 to your computer and use it in GitHub Desktop.
you can't freeze constants in ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BOB = 3 #=> 3 | |
BOB.freeze #=> 3 | |
BOB = 4 # (irb):4: warning: already initialized constant BOB #=> 4 | |
BOB #=> 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
so i see!