Skip to content

olange/ruby_koans

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This branch is my journey into EdgeCase’s Ruby Koans, written by Jim Weirich and Joe O’Brien. A nice way along which I could review my understanding of the Ruby language, as well as learn more about it.

« The Ruby Koans walk you along the path to enlightenment in order to learn Ruby. The goal is to learn the Ruby language, syntax, structure, and some common functions and libraries. We also teach you culture. Testing is not just something we pay lip service to, but something we live. It is essential in your quest to learn and do great things in the language. » from the original documentation

I forked the ruby_koans repository, generated the Koans, created a new empty branch called mytake and did copy the generated Koans there:

         [~] $ git clone -b master https://github.com/olange/ruby_koans
         [~] $ cd ruby_koans
[ruby_koans] $ rake gen                                 # generates the koans directory
[ruby_koans] $ mv koans /tmp/koans
[ruby_koans] $ git symbolic-ref HEAD refs/heads/mytake  # create a new empty branch
[ruby_koans] $ rm .git/index 
[ruby_koans] $ git clean -fdx 
[ruby_koans] $ mv /tmp/koans .
[ruby_koans] $ git add koans
[ruby_koans] $ git commit -m 'Initial import of the Ruby Koans'

From there, I also did restore the .gitignore, Rakefile and README.rdoc files and started filling the missing terms within the assertions that the Koans provide.

Assuming you have installed Ruby and cloned this branch, here is how you could run the Ruby Koans:

[ruby_koans] $ rake                           # runs the default target :walk_the_path
[ruby_koans] $ ruby path_to_enlightenment.rb  # simply call the file directly

Please check out the original documentation for more information on installing Ruby and using the Koans.

The Ruby Koans were written by EdgeCase Jim Weirich and Joe O’Brien. Many thanks!

Ruby Koans Website

rubykoans.com

Ruby Koans Git repo

github.com/edgecase/ruby_koans

RubyKoans and my modest take at them are released under a Creative Commons, Attribution-NonCommercial-ShareAlike, Version 3.0 (creativecommons.org/licenses/by-nc-sa/3.0/) License.

About

A set of Koans to teach the Ruby language

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%