Ask HN: Help me refactor this code please (Ruby) | Heykuki News