Each object has its own numeric object ID.
# You can find out what this ID is with the object_id method from Object. myString = "asdf" whitman = myString # copy one string object to another whitman == myString # => true myString.object_id # => 968680 whitman.object_id # => 968680
1. | Check the object_id before and after replace | ||
2. | Check the object_id before and after the assignment | ||
3. | object_id is not changing |