List of Listings
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
Get The Well-Grounded Rubyist, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.