On Sat, 27 Jan 2001, David Ruby wrote:

> can a ruby statement break into multiple lines?
> if not, is there a line continuation symbol in ruby?

Yes, if you have the Ruby-book see page 201.
A statement break into mutliple lines if it is not complete,
i.e. "if the last token on a line is an operator or comma".
But you can also use \ as the last character on the line, to
continue on the next line.

a = 2 +
    3
is equivalent to a=2+3

a = 2  \
    + 3

here you need the \ at the end of the line.


--
Michael Neumann