From: Justin Collins Date: 2006-08-10T06:23:36+09:00 Subject: Re: application design advice snacktime wrote: >> c = Transaction.new >> ProtocolHandler.setcallback {|args| c.Process) > > Oops, that should be.. > > ProtocolHandler.setcallback {|args| c.Process(args)} > > Which brings up another question. How would I write a similar block > to handle multiple arguments where the number of arguments isn't known > when I call setcallback? With the 'splat' operator: ProtocolHandler.setcallback {|*args| c.Process(*args)} -Justin