Skip to content

Instantly share code, notes, and snippets.

@petelacey
Created September 9, 2009 14:46
Show Gist options
  • Save petelacey/183766 to your computer and use it in GitHub Desktop.
Save petelacey/183766 to your computer and use it in GitHub Desktop.
irb(main):001:0> a = b = "Hello"
=> "Hello"
irb(main):002:0> b = "Goodbye"
=> "Goodbye"
irb(main):003:0> a
=> "Hello"
irb(main):007:0> m = n = "Hello"
=> "Hello"
irb(main):008:0> n += "Goodbye"
=> "HelloGoodbye"
irb(main):009:0> m
=> "Hello"
irb(main):004:0> x = y = "Hello"
=> "Hello"
irb(main):005:0> y << "Goodbye"
=> "HelloGoodbye"
irb(main):006:0> x
=> "HelloGoodbye"
irb(main):007:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment