Mega Code Archive

 
Categories / Ruby / Language Basics
 

Some valid examples of commenting in Ruby

puts "2+2 = #{2+2}" # Adds 2+2 to make 4 # A comment on a line by itself