From: Louis-Philippe Date: 2008-12-12T12:43:23+09:00 Subject: parallel method return value ------=_Part_1355_8645056.1229053823037 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, this is assignment behaviour: >> a,b = 1,2,3 => [1, 2, 3] >> a => 1 >> b => 2 and with a method: >> def a_method >> return 1, 2, 3 >> end => nil >> a,b = a_method => [1, 2, 3] >> a => 1 >> b => 2 If I want only one lvalue, is this: >> a, = 1, 2, 3 => [1, 2, 3] >> a => 1 the only way to get it? I would have liked for the return behaviour to be set on the right side, to allow method invocation like: >> puts a_method to return: 1 instead of 1 2 3 Thanks all! L-P ------=_Part_1355_8645056.1229053823037--