Refactoring out conditionals in Ruby using shallow inheritance and polymorphism.

Check our online coding bootcamp out and see why!
You can also follow us on twitter at @devschoolrocks (

Conditionals are messy and they breed like rabbits. Here I show you how to use some tricks with Ruby to refactor those conditionals out using concretions.