Values & References4 / 16
Up next

object_id

a = "data"
b = a
c = a.dup
# the alias shares an id; the copy does not
puts a.object_id == b.object_id
puts a.object_id == c.object_id
What you're solving

an alias shares identity