Wednesday, May 21, 2008

Typical Ruby File

Take a look of my small Ruby file:

#!/usr/bin/ruby

#it is a comment

=begin
mutliple line comments
=end

puts "Hello World"


Notes:
- Single line comment, put "#" in the front
- Multiple line comments (use =begin...=end block) :
=begin
...comments..
=end

No comments: