From: Eric Hodel Date: 2005-01-29T05:57:49+09:00 Subject: Re: DRb and DRbUndumped only for one method? --Apple-Mail-9--210408864 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 27 Jan 2005, at 23:00, Ville Mattila wrote: > Eric Hodel writes: > >> Only objects can be undumpable, not methods. You *can* make the >> object >> that is returned by a method undumpable: >> >> class X >> def meth >> obj = do_stuff >> obj.include DRbUndumped >> return obj >> end >> end > > Ah! Of course. Except you have to use obj.extend. > Thanks for your guidance Eric. Doh! I typed exactly 'extend' when testing... -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --Apple-Mail-9--210408864 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB+qcXMypVHHlsnwQRAu1BAJ9dErXA2xOQJrh5gnS8/UKiWLDULgCgrUDP g2XKnTBWtoF3Hjktv+F8XDk= =cDef -----END PGP SIGNATURE----- --Apple-Mail-9--210408864--