Extracting a method

All Better Ruby in 5 Minutes videos

With test coverage in place, I want to extract a method to reduce duplication. When you have two methods that are nearly the same, the simplest refactoring is to make them exactly the same…

Become a better Ruby developer with free RubySteps lessons