Skip to content

Instantly share code, notes, and snippets.

@gabrie30

gabrie30/.rb Secret

Created January 7, 2016 18:18
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 gabrie30/55481c98287782c7702a to your computer and use it in GitHub Desktop.
Save gabrie30/55481c98287782c7702a to your computer and use it in GitHub Desktop.
original = [[1],[2],[3]]
copy = original.dup
copy[2] << "what_the?"
p original #=> [[1], [2], [3, "what_the?"]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment