You don't need any end-of-line marker at all in Ruby. : Code statement « Language Basics « Ruby






You don't need any end-of-line marker at all in Ruby.


# If you can't fit a Ruby statement on one line, 
# you can tell Ruby that you are continuing that line of code on a second line by using backslashes


puts \
"Hello from Ruby."

 








Related examples in the same category

1.Group multiple expressions into a single expression