Skip to content

Instantly share code, notes, and snippets.

@madrobby
Created June 9, 2014 14:24
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 madrobby/0caa0a78445f41de422a to your computer and use it in GitHub Desktop.
Save madrobby/0caa0a78445f41de422a to your computer and use it in GitHub Desktop.
irb(main):001:0> A = [1,2,3].freeze
=> [1, 2, 3]
irb(main):002:0> A[2] = 5
TypeError: can't modify frozen array
from (irb):2:in `[]='
from (irb):2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment