Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Comments « Language Basics « Ruby
Ruby
Language Basics
Comments
1.
What are Comments
2.
This block comment conceals several lines from the interpreter with =begin/=end:
3.
Create comments in Ruby, using the # symbol.
4.
Some valid examples of commenting in Ruby:
5.
Make sure trailing comments are far enough from the code