May 2009
Intermediate to advanced
520 pages
16h 48m
English
Chapter 1. Bootstrapping your Ruby literacy
Listing 1.1. Simple, limited-purpose Celsius-to-Fahrenheit converter (c2f.rb)
Listing 1.2. Interactive temperature converter (c2fi.rb)
Listing 1.3. Temperature converter using file input (c2fin.rb)
Listing 1.4. Temperature converter with file output (c2fout.rb)
Listing 1.5. Rakefile defining clean_tmp tasks inside the admin namespace
Chapter 3. Organizing objects with classes
Listing 3.1. An instance variable maintaining its value between method calls
Listing 3.2. Ticket class, with the attribute reader/writer methods spelled out
Listing 3.3. Ticket class, with getter and setter methods defined via attr_* calls
Chapter 4. Modules and program organization
Read now
Unlock full access