ruby: clean your code