[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Cloning arrays

Len Lawrence

3/22/2008 2:40:00 PM

Thanks for the tutorials guys. Marshal proved the perfect solution.

Len
1 Answer

ara.t.howard

3/22/2008 3:53:00 PM

0


On Mar 22, 2008, at 8:39 AM, Len Lawrence wrote:

> Thanks for the tutorials guys. Marshal proved the perfect solution.

fyi - i nearly always define this in my libs

class Object
def mcp
Marshal.load(Marshal.dump(self))
end
end

a = 1,2,3

p a.mcp

a @ http://codeforp...
--
it is not enough to be compassionate. you must act.
h.h. the 14th dalai lama