title: Why cannot use instance method noecho of class IO?
body: <pre><code>print "Enter your password: "
  pass = STDIN.noecho(&amp;:gets)
  puts "Your password is #{pass}!"
  </code></pre>
  
  <p>OUTPUT:</p>
  
  <pre><code> Enter your password: input.rb:2:in `&lt;main&gt;': undefined method `noecho' for #&lt;IO:&lt;STDIN&gt;&gt; (NoMethodError)
  </code></pre>