Refactoring out conditionals in Ruby using shallow inheritance and polymorphism.

Check our online coding bootcamp out and see why https://devschool.rocks!
You can also follow us on twitter at @devschoolrocks (https://twitter.com/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.

source