title: How to timeout gets.chomp
body: <p>I am trying to write a program that will ask the user to answer a question using <code>gets.chomp</code> in three seconds or the answer will automatically return false.</p>
  
  <p>I figured out everything except for the timeout part and I was wondering if anyone could please help. </p>