title: Is undefined variable equal to nil in Ruby?
body: <p>I got error as <code>undefined variable</code>, I know <code>nil</code> is evaluated to <code>false</code> if used as boolean:</p>
  
  <pre><code>if y
    puts "Something"
  end
  </code></pre>