0 votes
in Ruby by
How will you comment in Ruby.

1 Answer

0 votes
by
Ruby comments are non-executable lines in a program. They do not take part in the execution of a program.

Single line comment syntax:

#This is single line comment.  

Multi line comment syntax:

=begin  

This  

is  

multi line  

comment  

=end
...