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:
- Run
rake
in theruby_koans
directory. - Find out which test is failing from the output.
- Fix the code.
- 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
.