From: Chris Moore Date: 2001-09-01T15:58:57+09:00 Subject: [ruby-talk:20657] Re: Multiple args to constructor oops... thx. On August 30, 2001 02:18 am, Michael Neumann wrote: > 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 -- ------------------ Chris Moore As a dog returns to it's vomit so a fool totheir folly -God