-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi, again
Can any Ruby Guru tell me, what is wrong with this code. http://pastie.caboo.se/17615 It gives me a syntax error. The Ruby version is 1.8.2 It has been working before, and ceased to do so , after removing one tag item from the txp_single array. It is a slight modification of the html version.
regards, marios
On 14. Oct 2006, at 08:39, marios wrote:
Can any Ruby Guru tell me, what is wrong with this code. http://pastie.caboo.se/17615
A when-line is either: when foo then bar or (the shorter) when foo: bar In your version you do: when foo: then bar
So remove ‘then’ from the when-lines which has it.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Allan Odgaard wrote:
On 14. Oct 2006, at 08:39, marios wrote:
Can any Ruby Guru tell me, what is wrong with this code. http://pastie.caboo.se/17615
A when-line is either: when foo then bar or (the shorter) when foo: bar In your version you do: when foo: then bar
So remove ‘then’ from the when-lines which has it.
That makes sense, thanks a lot
regards, marios