List of Listings
Listing 1.1. SQL for graph example database
Listing 1.2. Setting up our database with ActiveRecord
Listing 1.3. Generating a graph with Scruffy
Listing 1.4. Using blocks to reduce code duplication
Listing 1.5. A small example of DRY syntax
Listing 1.6. Map is one way Ruby uses functional programming for parallelism
Listing 1.7. Using attr_accessor to define accessor methods on your class
Listing 1.8. A reimplementation of attr_accessor
Listing 1.9. Using ActsAsTaggable to get a lot of features in one line of code
Listing 1.10. Building an RSS feed for our projects
Listing 1.11. A simplified look at XML::Builder’s use of method_missing
Get Ruby in Practice 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.