title: ruby triple equal
body: <p>Let's say that I have following code.</p>
  
  <pre><code>result = if a.is_a?(Class) &amp;&amp; a &lt;= Exception
     a.name
  elsif ...
  elsif ...
  end
  </code></pre>
  
  <p>I refactored this code to</p>
  
  <pre><code>case a
  when Exception
       a.name
  when ...
  when ...
  end
  </code></pre>
  
  <p>Do I understand triple equal correctly?</p>