Yukihiro Matsumoto
12/3/2004 6:44:00 AM
Hi,
In message "Re: * usage"
on Fri, 3 Dec 2004 15:30:30 +0900, "trans. (T. Onoma)" <transami@runbox.com> writes:
|I've come across this a few times now and don't understand why its a syntax
|error:
|
| @f << *(c.attributes.collect{ |k,v| "#{k}=#{v}" })
Because operators only take fixed number of arguments. If you want to
add an array, try
@f << [*(c.attributes.collect{ |k,v| "#{k}=#{v}" })]
which is legal.
matz.