From: jeremy@... (Jeremy Henty) Date: 2002-02-17T21:05:18+09:00 Subject: Re: dump/load a class that has C and Ruby data In article <3C6F503B.CFB0E03C@path.berkeley.edu>, Joel VanderWerf writes: > I have some classes whose instances have C data as well as Ruby > attrs. If I Marshal::dump them, I lose the C part. So I have to > define _dump in my classes. Well, it's not so hard to pack my C data > up into a string. I can even put this string in a Ruby > attribute. But then how do I dump the Ruby part? I did a search for "marshal" on ruby-talk. This might be useful: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/4570 Is there an article anywhere on advanced use of Marshal? _Programming Ruby_ only describes the most elementary case. It would be nice to see an explanation of eg. proper use of the depth argument (why is it needed, when is it needed, how to use it). Regards, Jeremy Henty