From: Ned Konz Date: 2001-08-30T05:52:49+09:00 Subject: [ruby-talk:20555] Re: Multiple args to constructor On Wednesday 29 August 2001 01:43 pm, Schaefer, F. 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. Assuming you have only one way you want to call new(), just define an initialize method that takes that many arguments. > By the way, in ruby ARGV[0] is not the application name - is > there something else that tells what the program is called on > the command line. $0 -- Ned Konz currently: Stanwood, WA email: ned@bike-nomad.com homepage: http://bike-nomad.com