From: "Wolfgang Nádasi-Donner" Date: 2007-11-27T04:30:35+09:00 Subject: Re: Syntax error when using comment between two lines in new method chain syntax Wolfgang N��dasi-Donner schrieb: > Hi! > > It dosn't give any problems to write comments between two > lines in a method chain, when using the original syntax... > > [[1], [2], [3]]. > # now flatten this > flatten. > # an now add all > inject(&:+) > > ..., but when using the new syntax, an error will occur... > > x.rb:3: syntax error, unexpected '.', expecting $end > .flatten > ^ > > The example works well without the comments. > > Wolfgang N��dasi-Donner > > :oops: Sorry, I forgot the Code that produces this error... [[1], [2], [3]] # now flatten this .flatten # an now add all .inject(&:+) Wolfgang N��dasi-Donner