title: What is an elegant way in Ruby to tell if a variable is a Hash or an Array?
body: <p>To check what <code>@some_var</code> is, I am doing a</p>
  <pre><code>if @some_var.class.to_s == 'Hash' 
  </code></pre>
  <p>I am sure that there is a more elegant way to check if <code>@some_var</code> is a <code>Hash</code> or an <code>Array</code>.</p>