What are Comments : Comments « Language Basics « Ruby






What are Comments


A comment hides lines from the Ruby interpreter so that the lines are discarded or ignored. 

You can make a comment run over several lines, like this:

# This is a comment.
# This is a comment, too.
# This is a comment, too.
# I said that already.

 








Related examples in the same category

1.This block comment conceals several lines from the interpreter with =begin/=end:
2.Create comments in Ruby, using the # symbol.
3.Some valid examples of commenting in Ruby:
4.Make sure trailing comments are far enough from the code