ruby: modernize style