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
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Cloning arrays
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password