From: Michael Neumann Date: 2001-08-30T18:18:53+09:00 Subject: [ruby-talk:20572] Re: Multiple args to constructor Chris Moore wrote: > On August 29, 2001 01:43 pm, you wrote: > > Hi again, > > > > now, how can I process multiple arguments by the constructor. > > The only method, that I know is to use a &block and > > apply it with 'instance_eval'. That turns out to be pretty > > cumbersome. > > > > what about > > def initialize ( args*) > var1 = args[1] > correct: def initialize ( *args ) # args is an Array var1 = args[1] end Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de