Frozen symbols
Ruby
code posted
created at 08 Oct 22:52
Edit
|
Back
1
2
3
4
5
6
7
8
9 |
irb(main):001:0> :foo
=> :foo
irb(main):002:0> :foo.frozen?
=> false
irb(main):003:0> :foo.freeze
=> :foo
irb(main):004:0> :foo.frozen?
=> true
irb(main):005:0>
|
171 Bytes in 2 ms with coderay