Some features of Ruby
Now, let us explore some of the features of Ruby.
Technorati Tags: Some features of Ruby
Blogs linking to this article
- Free format
- Case sensitive
- Comments - Anything following an unquoted #, to the end of the line on which it appears, is ignored by the interpreter. Also, to facilitate large comment blocks, the ruby interpreter also ignores anything between a line starting with "=begin" and another line starting with "=end"
- Statement delimiters - Multiple statements on one line must be separated by semicolons, but they are not required at the end of a line; a linefeed is treated like a semicolon. If a line ends with a backslash (\), the linefeed following it is ignored; this allows you to have a single logical line that spans several lines
- Documentation - The complete documentation for Ruby is available online here.
First Post | Previous | Next
Technorati Tags: Some features of Ruby
Blogs linking to this article
2 Comments:
Will it be better to talk about escape characters here? What I mean is, how can we escape these special characters? (=Begin, \, #)
Anish
Got the answer in the next blog. Thanks. Using a "\" we can escape the characters. To escape "\" simple use it twice "\\"
Anish
Post a Comment
<< Home