Updated Ruby Tutorial
Friday, August 17th, 2007I’ve just updated my Ruby tutorial with a ton of new content. Some of the added sections include:
- A regular expression (regex) reference
- An explanation of the rather confusing rules behind block scope
- An example on the use of the Ruby
case
statement (similar to the Cswitch
statement) - How to write your own
attr_accessor
method (and understandclass_eval
in the process) - Several new core functions and methods
I don’t know if anyone else is finding my reference helpful, but it has definitely aided me in understanding the intricacies of Ruby.