title: Ruby recursive function
body: <p>I've problem returning value from recursive function. </p>
  
  <pre><code>def ask_question(question)
      print question
      answer = STDIN.gets.chomp
  
      ask_question question if answer.empty?
      return answer
  end
  </code></pre>
  
  <p>The first time the <strong>answer</strong> is returned properly but I got empty string in next calls.
  Why is that?</p>