User Program Communication
Commenting in Ruby
Commenting is used to write text within the code that is ignored by the compiler.
#single line comment =begin Multi line comment This is all ignored by the compiler =end
Can be used for documentation, code descriptons, resource inclusion, readability, debugging, and any other note that the programmer would like to include.
#This code is written by Anthony puts "I think I am cool" =begin The code below outputs the string: 'Because I am!' =end puts "Because I am!"