From: Jim Freeze Date: 2001-07-07T05:04:56+09:00 Subject: [ruby-talk:17426] Re: How to copy an object On Sat, 7 Jul 2001, Avi Bryant wrote: > Here's a somewhat cheesy solution: > > class Package > def clone > Marshal.load(Marshal.dump self) > end > end > If it is Parmesean cheese, then it is OK. :) What you suggest fixes the problem of manually specifying all the classes that Package may contain. What still remains is to put this burdon upon Box and not Package. ========================================================= Jim Freeze jim@freeze.org --------------------------------------------------------- No comment at this time. http://www.freeze.org =========================================================