How to write Multiline comments in Ruby
In this tutorial, we are going to learn about how to write a multiline comments in Ruby.
In ruby, we can write a single line comment by using #
character followed by the comment.
# this is a single line comment
Multiline comments
To write a multiline comment, we can use =begin
and =end
syntax in Ruby.
Here is an example:
=begin
you can
see mee
in multiple lines
=end
Note: The multiline comment starts after the =begin
and ends before the =end
.