Skip to content

Instantly share code, notes, and snippets.

@masterkain
Forked from tokumine/gist:8556
Created September 3, 2008 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masterkain/8557 to your computer and use it in GitHub Desktop.
Save masterkain/8557 to your computer and use it in GitHub Desktop.
irb(main):001:0> ME = 5.freeze
=> 5
irb(main):002:0> ME.frozen?
=> false
irb(main):003:0> ME = "5".freeze
(irb):3: warning: already initialized constant ME
=> "5"
irb(main):004:0> ME.frozen?
=> true
irb(main):005:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment