From: Jason Watson Date: 2010-08-05T05:42:59+09:00 Subject: Re: Default arguments problem On 2010-08-04 21:13:49 +0100, Amir Ebrahimifard said: > def sum(p,q=2,r) > puts p+q+r > end Does the default arg have to be the second one? If not just move it to the end of the args list. def sum(p,r, q=2) puts p+q+r end