Created
September 24, 2017 20:36
-
-
Save SrdjanCoric/c1f2cb0fc79d25fc78f8219a0db9e488 to your computer and use it in GitHub Desktop.
This file contains 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 characters
a = 'hello' | |
puts a # -> hello | |
puts a.object_id # -> 70368468160540 (this number will be different for you) | |
a.upcase | |
puts a # -> hello | |
puts a.object_id # -> 70368468160540 (this number will be the same as the one above) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment