From: joey__ Date: 2006-03-25T16:40:08+09:00 Subject: Re: meaning of *array Axel Schlueter wrote: > dblack@wobblini.net wrote: >> The * is a "unary unarray" operator. It "un-arrays" the array into a >> list of separate values. > > Ah! Thanks for the explanation. > > Kind regards, > Axel It is mostly used as the end param to collect the overflow. def one(o,t,*args) puts o puts t puts args.join(',') end one(1,2,2,2) => 1 2 2,2 why_ talked about it on his blog a few weeks ago: http://redhanded.hobix.com/bits/wonderOfTheWhenBeFlat.html joey__ -- Posted via http://www.ruby-forum.com/.