Skip to content
A collection of exercises to practice various aspects of Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
archive
command-query creates exercises folder Jun 15, 2018
data-types fixes name for test Nov 23, 2018
debugging
enumerables
initialize
iteration
modules updates pets exercise Jul 16, 2018
mythical-creatures
objects-and-methods
problem-solving Clarified 1 test name and 2 test expected values. Nov 17, 2018
Gemfile Remove homework gem from Gemfile Jun 24, 2017
Gemfile.lock Add minitest-homework dependency Jan 17, 2014
README.md

README.md

Ruby Exercises

This is a collection of exercises to practice various aspects of Ruby. Each folder in this repository is a set of related exercises. Open up the folder and read the README to learn more about them.

Getting Started

If you are new to Ruby, please see This Guide for help getting started with the Ruby Exercises.

Setup

  1. Clone this repository
  2. From the command line, cd into the ruby-exercises directory.
  3. From the command line, run bundle
  • If you get an error saying that the command bundle was not found, first run gem install bundler and then try again.

Order

Here is a very rough suggested timeline for working on the exercises. This is just a suggestion, as the exercises can be completed in any order.

  • Week 1

    • data-types
      • collections/arrays
      • ints_and_floats
      • strings
    • initialize
      • aardvark
      • beaver
      • cat
      • dog
      • eel
      • ferret
      • groundhog
      • horse
    • mythical-creatures
      • Unicorn
      • Vampire
      • Dragon
    • enumerables/exercises
      • find_pattern_test
      • find_test
      • map_pattern_test
      • map_test
      • select_pattern_test
      • select_test
  • Week 2

    • data-types/collections/hashes.rb
    • objects-and-methods/exercise-1
    • mythical-creatures
      • Hobbit
      • Pirate
      • Wizard
    • command-query
      • leather_chair_test.rb
      • baby_test.rb
      • beers_test.rb
  • Week 3

    • datatypes/collections/nested_collections.rb
    • object-and-methods/exercise-2
    • mythical-creatures
      • Medusa
      • Werewolf
      • Centaur
      • Ogre
    • command-query
      • adult_test.rb
      • roll_call_test.rb
      • wallet_test.rb
  • Week 4+

    • Enumerables/exercises
    • Iteration
    • Command and Query
    • Complete/Redo Mythical Creatures
You can’t perform that action at this time.