James Britt

Maximum R&D

10 Minutes to Your First Ruby Application

May 2009

10 Minutes to Your First Ruby Application is an article I wrote in 2007 for a special DevX report on Ruby.

So you’ve discovered the grace and power of Ruby and you’re ready to explore the subtle but important ideas behind its elegance. Follow this tutorial to create a small, useful Ruby application. As Ruby is primarily an object-oriented language with classes and objects, you can jump right in and create a class to encapsulate behavior. The instructions begin with a simple version of the application, and then expand it. Along the way, you will learn what makes Ruby tick.

The example application will serve two purposes:

  1. Demonstrate some features of Ruby.
  2. Do something useful in the process.