How to control application flow in Ruby? | Hacker News Reader