Create a gist now

Instantly share code, notes, and snippets.

@gabrie30 /.rb Secret
Created Jan 7, 2016

What would you like to do?
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