Skip to content

A collection of specs for learning inheritance and modules in Ruby.

Notifications You must be signed in to change notification settings

shjohnson/inheritance_excercises

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inheritance_excercises

A collection of specs for learning inheritance and modules in Ruby.

1: Boxes: Basic Inheritance

Firstly, make the box_spec pass by building an implementation of Box.

Then, make another class MagicBox. MagicBox should inherit from Box, but overwrite the #shake method to turn contents into something else!

2: Life: Complex Inheritance

There are a set of specs in the life folder that describe four classes: Animal, Reptile, Turtle and GrassSkink.

Implement four classes that inherit from each other in a logical way, and add functionality to make the specs pass.

About

A collection of specs for learning inheritance and modules in Ruby.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%