CS 214: Programming Languages
Spring 2009

Home|Syllabus|Schedule
<<|>>

Ruby Koans
Ruby, Iteration 2

Some very smart Ruby guys came up with "Ruby Koans".

Read about the Ruby Koans from their GitHub repository. Do not do any of the things they suggest... yet!

Obtain the Koans

To the get the Ruby Koans, you need to clone the git repository:

git clone git://github.com/edgecase/ruby_koans.git

Run this command in your ruby directory.

Do the Koans

It's probably not very Zen to say it that way, but the next step is to work through the tests that this projects provides to you. It's built up of unit tests which, along with some well placed comments, teach you things about Ruby.

This is your algorithm with running the koans:

  1. Run rake in the ruby_koans directory.
  2. Find out which test is failing from the output.
  3. Fix the code.
  4. Repeat.

Work through the koans.

If you only need to do some of the koans, you can comment out require statements in koans/path_to_enlightenment.rb.