Cloning arrays

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

Len

On Mar 22, 2008, at 8:39 AM, Len L. 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://codeforpeople.com/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs