title: how to use ruby " case ... when " with inequalities?
body: <p>can you do this in ruby?
  it seems to "miss" the cases with inequalities</p>
  
  <pre><code> case myvar
   when  myvar &lt; -5
      do somethingA
   when -5..-3
      do special_something_XX
   when -2..-1
      do special_something_YY
   when myvar == 0
      do somethingB
   when myvar &gt; 0
      go somethingC
   end
  </code></pre>