I have a question in which I first scoured the web for an answer, to no avail. I'm attempting to copy an object which I thought simple enough to do. So I'm trying to use .dup/.clone/= and it copies and all but whatever alteration I make to the duplicate the original is also altered. I guess they both reference the same memory. The question I have is how do I create a copy and have it be new memory? Do I have to write a method that acts as a copy constructor for the object?
Thanks for taking the time to read my problem! :thumb:
Thanks for taking the time to read my problem! :thumb: