Use polymorphism to replace a case expression in Ruby
Earlier we showed you the main principles of doing object-oriented programming (OOP) with Ruby And now it’s time to find out how to use polymorphism to replace a case expression in Ruby. But first, let’s look at how the case expression works, and how you can use it to achieve the goal men...

















