title: gets function is causing an Invalid argument error
body: <p>I'm having to learn ruby (not rails) due to a device that only runs ruby installed code.</p>
  
  <p>I'm currently using v 1.9.3 on my Windows 10 desktop to study the syntax and I can't run any examples with the gets() function.</p>
  
  <p>example:</p>
  
  <pre><code>name = gets()
  </code></pre>
  
  <p>without getting the error </p>
  
  <blockquote>
    <p>test.rb:1:in `gets': Invalid argument -  (Errno::EINVAL)</p>
  </blockquote>
  
  <p>I haven't tried updating the version (Manufacturer's guide, though possible just out of date, listed installing 1.9) but I wouldn't think such a core function would be missing from this version.</p>
  
  <p>puts() works just fine.</p>
  
  <p>Thanks in advance for any direction...</p>