From: Eric Hodel Date: 2004-03-04T23:34:05-08:00 Subject: How to use Ruby's Rinda::Ring --gQt10JDuGyDb0HQ5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable After studying Masatoshi SEKI's translated Rinda::Ring description, the Rinda examples in Ruby's examples directory, and the Rinda sources, I discovered that Rinda is super easy to use! So I wrote this little write-up on how to use it: http://segment7.net/ruby-code/drb/rinda/ My one complaint with Rinda::RingFinger is that there's not a quick method to grab a service from the RingServer. Something like this would be a nice addition (untested): class Rinda::RingFinger ## # Fetch +service+ or return nil if the named service is not found. def self.find_service(service) tuple =3D primary.read [:name, service, nil, nil] return tuple.nil? ? nil : tuple[2] end 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 --gQt10JDuGyDb0HQ5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQFASC1tMypVHHlsnwQRAqJcAKDZE8BPz93APBcRb6VnzwXBKGZAVACgyEH3 AJ+w4HBXoyJZfKyDOJezU1I= =T1Dc -----END PGP SIGNATURE----- --gQt10JDuGyDb0HQ5--