Login
Remember
Register
Ask a Question
How will you comment in Ruby.
0
votes
asked
Nov 11, 2021
in
Ruby
by
SakshiSharma
How will you comment in Ruby.
ruby-comment
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Nov 11, 2021
by
SakshiSharma
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
...