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.