ruby raindrops refactor