Fix Ruby styling advisories from Rubocop static analysis