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.
If you are new to Ruby, please see This Guide for help getting started with the Ruby Exercises.
- Clone this repository
- From the command line,
cd
into theruby-exercises
directory. - From the command line, run
bundle
- If you get an error saying that the command
bundle
was not found, first rungem install bundler
and then try again.
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/arraysints_and_floatsstrings
- initialize
aardvarkbeavercatdogeelferretgroundhoghorse
- mythical-creatures
UnicornVampireDragon
- data-types
-
Week 2
data-types/collections/hashes.rb- objects-and-methods/exercise-1
- mythical-creatures
HobbitPirateWizard
- command-query
leather_chair_test.rbbaby_test.rbbeers_test.rb
-
Week 3
datatypes/collections/nested_collections.rbcollections/advanced_nested_collections/nesting_test.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- Iteration
- Command and Query
- Complete/Redo Mythical Creatures
Debugging