From: "Sergio Gil PĂ©rez de la Manga" Date: 2007-12-05T21:55:21+09:00 Subject: Re: Expanding array as function arguments On Dec 5, 2007 1:43 PM, Witold Rugowski wrote: > Hi! > I wonder if it is possible to expand array as function arguments. Like > > def foo( a, b, c) > end > > foo [1,2,3].to_args > > > Is possible to do it? foo *[1,2,3] ( similar to grouping several arguments into an array if method definition: def foo(*args) end foo 1, 2, 3 ) -- Sergio Gil Pérez de la Manga e-mail > sgilperez@gmail.com blog > http://www.lacoctelera.com/porras