How to write Multiline comments in Ruby

How to write Multiline comments in Ruby

In this post we will give you information about How to write Multiline comments in Ruby. Hear we will give you detail about How to write Multiline comments in RubyAnd how to use it also give you demo for it if it is necessary.

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:

=beginyou cansee meein multiple lines=end

Note: The multiline comment starts after the =begin and ends before the =end.

Hope this code and post will helped you for implement How to write Multiline comments in Ruby. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US