On Friday 03 December 2004 02:57 pm, Florian Gross wrote:
| trans. (T. Onoma) wrote:
| > 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}" })
|
| Are you sure you don't want to do this?
|
| @f.push(*c.attributes.collect{ |k,v| "#{k}=#{v}" })
|
| Or even:
|
| @f += c.attributes.collect{ |k,v| "#{k}=#{v}" }

I'm sure I would ;) I was just pointing out that the other throws a syntax 
error --even if it contains only one element.

Thanks,
T.