Refactoring with code blocks in ruby | Hacker News Reader