From: Gaston Garcia Date: 2005-08-27T03:39:11+09:00 Subject: Re: ruby quiz question '*' on the initialize parameters ------=_Part_9886_29386363.1125081548057 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline well, now I got lost with that reverse example. but I did get the first one= . thanks! : ) On 8/26/05, James Edward Gray II wrote: >=20 > On Aug 26, 2005, at 1:24 PM, Gaston Garcia wrote: >=20 > > Thanks james, that's a beautiful thing that does!!! >=20 > It also works in reverse. Watch this: >=20 > irb(main):001:0> def var_args( *args ) > irb(main):002:1> fixed_args(*args) # expanded back out > irb(main):003:1> end > =3D> nil > irb(main):004:0> def fixed_args( one, two, three ) > irb(main):005:1> p three > irb(main):006:1> end > =3D> nil > irb(main):007:0> var_args 1, 2, 3 > 3 > =3D> nil >=20 > James Edward Gray II >=20 >=20 >=20 --=20 -gaston ------=_Part_9886_29386363.1125081548057--