From: Eric Hodel Date: 2003-08-07T14:10:36-07:00 Subject: Re: [DRb] Using DRb to implement object database --DBUa/BSa4z6QPQv1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Try doing something like this: (untested, no warranty :) class Class def self.proxy? false end end module Proxy def self.proxy? true end end class YourClass include Proxy end def dump(obj) obj =3D DRbObject.new(obj) if obj.kind_of? DRbUndumped begin raise if obj.class.proxy? # add this line str =3D Marshal::dump(obj) rescue str =3D Marshal::dump(DRbObject.new(obj)) end [str.size].pack('N') + str end --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --DBUa/BSa4z6QPQv1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/MsBMMypVHHlsnwQRAssCAKCdmhEHRQzlX1IoYpHhds/C67WkIACgjAqm U83hM7hNzZR0AvtjRXC3gRs= =Qi1T -----END PGP SIGNATURE----- --DBUa/BSa4z6QPQv1--