From: Daniel Manchego Date: 2012-02-06T10:38:46+09:00 Subject: UNSUBSCRIBE --000e0cdfdb60001c9a04b841b906 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, Feb 5, 2012 at 8:19 PM, Jones Lee wrote: > I'd like to ask why having: > > ``` > def my_method(*param1, param2 =3D "default"); end > ``` > > returns > > ``` > SyntaxError: (irb):15: syntax error, unexpected '=3D', expecting ')' > ``` > > My workaround is explicitly wrap param in brackets like this: > > ``` > def my_method((*param1), param2 =3D "default"); end > ``` > > May thanks > > -- > Posted via http://www.ruby-forum.com/. > > --=20 -- Daniel Manchego Tel=C3=A9fonos: 946266610 / 626*6610 http://www.eraazulproducciones.com https://www.facebook.com/daniel.manchego http://dmanchego.blogspot.com Msn: dmanchego@hotmail.com Skype: daniel.manchego Lima - Per=C3=BA --000e0cdfdb60001c9a04b841b906--