title: Determining "Truthiness" of an expression?
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/3028243/check-if-ruby-object-is-a-boolean">Check if Ruby object is a Boolean</a><br>
    <a href="https://stackoverflow.com/questions/3645232/how-can-i-avoid-truthiness-in-ruby">How can I avoid truthiness in Ruby?</a>  </p>
  </blockquote>
  
  
  
  <p>Given an array like the following (for example):</p>
  
  <pre><code>[3, false, "String", 14, "20-31", true, true, "Other String"]
  </code></pre>
  
  <p>Is there an easier way to determine which elements are <em>actual</em> boolean values without resorting to this, for example? </p>
  
  <pre><code>value === TrueClass || value === FalseClass
  </code></pre>
  
  <p>Relying on the position in the array is not an option, as it will vary from case-to-case.</p>