minor: making a quick compliance pass

after adding the new style linter, this is just a quick pass to make all existing code conform. let me know if you see any issues here.

all style rules come from a community style guide [1] where you can find a full explanation of each.

[1] https://github.com/bbatsov/ruby-style-guide