Created
October 10, 2018 20:08
-
-
Save Marahin/d59fc2a4fa2e3140de0be8e9d537ec3c to your computer and use it in GitHub Desktop.
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
[1] pry(main)> A = [1].freeze | |
=> [1] | |
[2] pry(main)> A << 2 | |
FrozenError: can't modify frozen Array | |
from (pry):2:in `__pry__' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment