Windows

First, let’s install Ruby. Go get the One-Click Installer from the website (http://rubyinstaller.org/) by clicking Download and then clicking the highest-numbered version of Ruby you see there (version 2.0.0 as of this writing). When you run it, it will ask you where you want to install Ruby and which parts of it you want installed. Just accept all the defaults.

Now let’s make a folder on your desktop in which you’ll keep all of your programs. Right-click your desktop, select New, and then select Folder. Name it something truly memorable, such as programs. Now double-click the folder to open it.

To make a blank Ruby program, right-click in the folder, select New, and then select Text Document. Rename the document to have the rb

Get Learn to Program, 2nd 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.