Last active
October 18, 2016 03:47
-
-
Save blooberr/aeca8fd704ad794bf4ce66038530f230 to your computer and use it in GitHub Desktop.
Revisions
-
blooberr revised this gist
Oct 18, 2016 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,17 +2,17 @@ a = [5, 3, 2] b = a # should see [5,3,2] puts b.inspect a[0] = 7 # should see [7,3,2] puts b.inspect # reset a = [5,3,2] b = a.dup a[0] = 7 # should see [5,3,2] puts b.inspect -
blooberr created this gist
Oct 18, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ a = [5, 3, 2] b = a # should see [5,3,2] puts b a[0] = 7 # should see [7,3,2] puts b # reset a = [5,3,2] b = a.dup a[0] = 7 # should see [5,3,2] puts b