From: jbshaldane@... (haldane) Date: 2003-03-21T23:22:21+09:00 Subject: Re: Madeleine 0.1 > Could you share your method wrapping code? It seems to be something > like what I intended to write. Um, sure. Except that just looking closely at this part of my system (which I am not using for anything important) I notice it is utterly broken. The problem is that the persistence layer needs to remember which objects the commands were for exactly because the object ids will be different next time they are Marshal.load -ed. And there is no way of doing that implemented at present in Mnemonic. This is one way to wrap method calls anyway. Note that I am careful to not make any singleton methods - these cannot be marshaled. # Need recent Ruby # Command module - sends any method calls through the persisted object # note that include Command should be the last line (not first) in # your class module Command class <