From: schuerig@... (Michael Schuerig) Date: 2001-02-25T11:10:03+09:00 Subject: [ruby-talk:11506] Re: XML-RPC and KDE chad fowler wrote: > Here's a version that actually works with *very* > limited testing: > > module XMLRPC > class Client > def method_missing(sym, *args) > if(@objects == nil) then @objects = > Hash.new end > if(@objects.has_key? sym) then return > @objects[sym] end > @objects[sym] = Proxy.new(sym, self) > return @objects[sym] > end > end > class Proxy > def initialize(sym, client) > @client = client > end > > def method_missing(sym, *args) > return @client.call(sym.id2name, > *args) > end > end > end > > And, with this one, you can call something like: > server.KDesktopIface.popupExecuteCommand(auth) Now, that's very cool. Thanks! Michael -- Michael Schuerig mailto:schuerig@acm.org http://www.schuerig.de/michael/