R
Ruby Newbee
x="hello "
x.freeze
x.concat "boy"
RuntimeError: can't modify frozen string
Then how to unfreeze a string?
Thanks.
x.freeze
x.concat "boy"
RuntimeError: can't modify frozen string
Then how to unfreeze a string?
Thanks.