Because I was bored and hate case statements.

Also, I love Enumerable#inject.