Remove unnecessary preinitializer
Never use unless with else
Use each_with_object instead of inject
Remove useless private access modifier
Remove space between first argument and parenthesis
Use self-assignment shorthand +=