From: Eric Hodel Date: 2002-11-19T10:21:14+09:00 Subject: Re: urgent DRb help --6zipuvUKAEymKn2g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable ahoward (ahoward@fsl.noaa.gov) wrote: > On Mon, 18 Nov 2002, Eric Hodel wrote: >=20 > E> Add this: > E> include DRbUndumped >=20 > why? it seems to work without it? ah, in the initial snippit, I assumed you were starting the server with Distributed, rather than its inner class. You will need to use it for a case like this: ------ server require 'drb' class Foo def bar return Bar.new end end class Bar def foopy "foopy" end end DRb.start_service(nil, Foo.new) puts DRb.uri gets ------ client require 'drb' DRb.start_service foo =3D DRbObject.new(nil, 'uri') puts foo.bar # <=3D works puts foo.bar.foopy # <=3D NameError, unless you include DRbUndumped in Bar # then its "foopy" --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --6zipuvUKAEymKn2g Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE92ZIHMypVHHlsnwQRAjoCAKDNw+Z6beMqcsUKAbH3puIN5PWNxQCg9JQg 05/WvOj6yUmFOlZJ3s7Kl5g= =wlyR -----END PGP SIGNATURE----- --6zipuvUKAEymKn2g--