Created
September 24, 2017 20:23
-
-
Save SrdjanCoric/231c776099ff292d528b2fc5c54e8e96 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 # -> 70368527757720 (this number will be different for you) | |
a.upcase! | |
puts a # -> HELLO | |
puts a.object_id # -> 70368527757720 (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