Skip to content

Instantly share code, notes, and snippets.

@jhowarth
Created May 15, 2012 02:12
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 jhowarth/2698558 to your computer and use it in GitHub Desktop.
Save jhowarth/2698558 to your computer and use it in GitHub Desktop.
irb(main):018:0> a = []
=> []
irb(main):019:0> a << 3
=> [3]
irb(main):020:0> a
=> [3]
irb(main):021:0> b = a
=> [3]
irb(main):022:0> b << 4
=> [3, 4]
irb(main):023:0> a
=> [3, 4]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment