Learn Ruby
Comments
16.2
Lesson

Multiple line comments

There are two ways to comment multiple lines.

First one is to use same style of using single line comment for multiple lines.

If we need to comment 50 or more lines like this then it is tiresome to keep adding # at the beginning of the line. In such cases multiple lines comment can be added. Multi line comment starts with =begin and ends with =end.