title: What does == do in Ruby?
body: <p>In Java, <code>==</code> is the strongest kind of equality (pointer equality): <code>a == b</code> always implies <code>a.equals(b)</code>. However, in Ruby, <code>==</code> is weaker than <code>.equals?</code>:</p>
  
  <pre><code>ruby-1.9.2-rc2 &gt; 17 == 17.0
   =&gt; true 
  ruby-1.9.2-rc2 &gt; 17.equal?(17.0)
   =&gt; false
  </code></pre>
  
  <p>So, where can I learn more about <code>==</code>? What kind of checks should I expect when I compare two objects with it?</p>