Skip to content

Instantly share code, notes, and snippets.

@marcric
Created February 13, 2010 17:11
Show Gist options
  • Save marcric/303562 to your computer and use it in GitHub Desktop.
Save marcric/303562 to your computer and use it in GitHub Desktop.
puts '==========='
# Same string content - different objects
puts "ZigZag".object_id #=> 25986960
puts '==========='
puts "ZigZag".object_id #=> 25986940
puts '==========='
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment