Skip to content

Instantly share code, notes, and snippets.

@Marahin
Created October 10, 2018 20:08
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 Marahin/d59fc2a4fa2e3140de0be8e9d537ec3c to your computer and use it in GitHub Desktop.
Save Marahin/d59fc2a4fa2e3140de0be8e9d537ec3c to your computer and use it in GitHub Desktop.
[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