It looks like you're new here. If you want to get involved, click one of these buttons!
Hi! When I try to copy an instance, if I use new_instance = instance.dup, the returned object's Hash value is same as the original one. That means if I modify new_instance, the original instance will change at same time. I tried many times to get a "full copy" ,but all failed. Could you please help me? Thanks.