Ruby code style guide implementation

- https://github.com/bbatsov/ruby-style-guide
- https://github.com/bbatsov/rubocop
ditto per previous comment using ternary operator.