Ruby Programming Examples: Email, Encryption, Zip, HTTP, XML, FTP

Chilkat Software Components

Code Comments in Ruby

Back

Comment lines in Ruby begin with a #. Anything after the # character to the end of the line is considered a comment.
# This line is a comment

foo = 1   # This is a comment at the end of a line.