D
Dmitry Regent
I'm novice at ruby and faced to a little problem.
I'll explain on the example:
I have a few references to an object
a = A.new
b = a
c = a
d = a
I want to change object of class A with object of class B here
if I do
a = B.new
b,c,d will be still refer to object A
How can I do it?
I'll explain on the example:
I have a few references to an object
a = A.new
b = a
c = a
d = a
I want to change object of class A with object of class B here
if I do
a = B.new
b,c,d will be still refer to object A
How can I do it?