Make Ruby style consistent throughout the codebase

Includes some small adjustments to Hound/Rubocop config.
Avoid multi-line ?: (the ternary operator); use `if`/`unless` instead.