Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
examples to go with introductory Ruby class
Ruby
branch: master

This branch is 4 commits ahead, 32 commits behind blazingcloud:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
01_class
02_scope
03_modules
04_test_first
05_calculator
06_temperature
07_simon_says
08_pig_latin
09_timer
10_enumerables
11_array
12_blocks
13_builder
14_web
exceptions
live_coding_demo_1
.gitignore
README.md

README.md

Welcome to Ruby!

Setup

  • Check out the git repository

    git clone git://github.com/blazingcloud/ruby_lessons.git
    
  • Install RSpec

    sudo gem install rspec
    
  • Configure RSpec (optional). If you're running a bash shell, you can put the following in your .bash_profile to make the output a bit nicer.

    alias spec="spec --color --format nested"
    
  • For lesson 14

    sudo gem install fakeweb

Resources

Ruby Language

Good online references for Ruby & Rails

When you have a question...

First, search for the answer (keywords, exact error string)

If you didn’t find the answer and you need to ask your question:

  1. Include version numbers: $ ruby -v ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
  2. Note where you have already looked for an answer
  3. If you can, include code snippets that reproduce the problem in isolation

Other good resources

  • rubular for regular expressions
  • irb

Related Projects

As a last resort

Credits

  • Test-First Teaching Concept by Alex Chaffee
  • All exercises cross-published at TestFirst.org where some were created in collaboration with Liah Hansen
  • Most examples and class by Sarah Allen
Something went wrong with that request. Please try again.