David Masover
2/14/2009 9:00:00 PM
Jeff Moore wrote:
>> Multiple assignment from array parameters is very useful as well...
>>
>> ra_parm = [1,2,3]
>>
>> def meth(ra_parm)
>> p1, p2, p3 = ra
>> end
>>
>> Regards
>>
>
> Make that...
>
> def meth(ra_parm)
> p1, p2, p3 = ra_parm
> end
>
Don't you need a splat for that?
def meth(ra_parm)
p1, p2, p3 = *ra_parm
end