From: Gregory Brown Date: 2006-02-21T05:09:08+09:00 Subject: Re: How to pass a group of arguments? On 2/20/06, anne001 wrote: > Thank you for your responses. > I had found the use of * to define a method, so the method will accept > variable number of arguments. > > But I think that is different from the usage Gregory Brown and Daniel > Harple suggested. There the * is used in front of an array passed on to > a function already defined. sandal@harmonix:~$ irb irb(main):001:0> def something(a,b,c) irb(main):002:1> puts "#{a},#{b},#{c}" irb(main):003:1> end => nil irb(main):004:0> something(*[1,2,3]) 1,2,3