Ruby style

Fix some minor stuff after running [Rubocop](https://github.com/bbatsov/rubocop) (based on [The Ruby style guide](https://github.com/bbatsov/ruby-style-guide)).