Ruby Cookbook, 2nd Edition
Recipes for Object-Oriented Scripting
Publisher: O'Reilly Media
Final Release Date: March 2015
Pages: 992

Why spend time on coding problems that others have already solved when you could be making real progress on your Ruby project? This updated cookbook provides more than 350 recipes for solving common problems, on topics ranging from basic data structures, classes, and objects, to web development, distributed programming, and multithreading.

Revised for Ruby 2.1, each recipe includes a discussion on why and how the solution works. You’ll find recipes suitable for all skill levels, from Ruby newbies to experts who need an occasional reference. With Ruby Cookbook, you’ll not only save time, but keep your brain percolating with new ideas as well.

Recipes cover:

  • Data structures including strings, numbers, date and time, arrays, hashes, files and directories
  • Using Ruby’s code blocks, also known as closures
  • OOP features such as classes, methods, objects, and modules
  • XML and HTML, databases and persistence, and graphics and other formats
  • Web development with Rails and Sinatra
  • Internet services, web services, and distributed programming
  • Software testing, debugging, packaging, and distributing
  • Multitasking, multithreading, and extending Ruby with other languages
Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews


by PowerReviews
oreillyRuby Cookbook, 2nd Edition

(based on 1 review)

Ratings Distribution

  • 5 Stars



  • 4 Stars



  • 3 Stars



  • 2 Stars



  • 1 Stars



Reviewed by 1 customer

Displaying review 1

Back to top

(1 of 1 customers found this review helpful)


Little changed from 1st Ed.

By Ben Unger

from Bronx, NY

About Me Maker

Verified Reviewer


  • Easy to understand


  • Dated

Best Uses

    Comments about oreilly Ruby Cookbook, 2nd Edition:

    I've got a hard copy of the 1st Edition published in 2007. It seemed a little dated so I bought the 2nd ed published in 4/2015. I regret wasting my money. A lot has changed in the mean time but the only change in the second edition seems to be a new 1st chapter exploring the difference between ruby 1.8 and 2.1. I should have known when there wasn't info describing 'What's new in this edition." I guess the authors are no longer excited about the mission of this book and have moved on to other projects. 99% of the useful info in this book can be found in a used copy of the 1st edition.

    Displaying review 1

    Back to top

    Buy 2 Get 1 Free Free Shipping Guarantee
    Buying Options
    Immediate Access - Go Digital what's this?
    Ebook: $42.99
    Formats:  ePub, Mobi, PDF
    Print & Ebook: $54.99
    Print: $49.99