Alex Rivera | Logout

Multi-Line Comments in Ruby?

Asked 2010-06-07T13:11:05.933
876

How can I comment multiple lines in Ruby?

Edit
Report

1 Answer

71

Despite the existence of =begin and =end, the normal and a more correct way to comment is to use #'s on each line. If you read the source of any ruby library, you will see that this is the way multi-line comments are done in almost all cases.

answered 2010-06-08T18:24:08.007

Your Answer