Skip to content

Instantly share code, notes, and snippets.

@aberant
Created June 1, 2011 20:51
Show Gist options
  • Save aberant/1003283 to your computer and use it in GitHub Desktop.
Save aberant/1003283 to your computer and use it in GitHub Desktop.
you can't freeze constants in ruby
BOB = 3 #=> 3
BOB.freeze #=> 3
BOB = 4 # (irb):4: warning: already initialized constant BOB #=> 4
BOB #=> 4
@toothrot
Copy link

toothrot commented Jun 2, 2011

so i see!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment