单行注释

  1. # This is a single line comment
  2. puts "Ruby tastes good!!"
  3. puts "Ruby sounds good!!" # This is a tailing comment

多行注释

  1. =begin
  2. Multiple-line comments starts
  3. blah blah...
  4. Multiple-line comments ends
  5. =end
  6. puts "It feels good~"