The core issue lies in how Ruby manages references to objects. When you assign a mutable object to an instance variable, you're not creating a copy; you're creating a reference. Modifying the object ...