Hi,
In message "[ruby-talk:17427] Re: Marshalling Optimization Idea"
on 01/07/07, Michael Witrant <mike / lepton.fr> writes:
|It would be nice if Marshal always called the _dump method and the
|Object class would provide a default one, wouldn't it?
I'm thinking of different solution. new (possible) _dump would
receive dumper object
def _dump(dumper)
... operation specific to your class ...
dumper.push(self)
end
The problem is I have to choose names for new _dump, dumper class and
undumper class. It's always hard to choose good names.
matz.