Refactoring an untested, complex case statement
Ruby
Latest commit bf1d9d8 Aug 15, 2013 @bplexico Update README
Permalink
Failed to load latest commit information.
README
color_generator.rb
starting_point.rb
test_color_generator.rb

README

1.  View starting_point.rb to see the method as it existed originally.
2.  View color_generator.rb to see the final class that was extracted and the method that was refactored
3.  View test_color_generator.rb to see the tests that were created to allow the refactoring.

The original source is from https://github.com/chrisdingli/PixelHoldr