title: Ruby remove nil values from array with .reject
body: <p>I have an array:</p>
  
  <pre><code>scores = [1, 2, 3, "", 4]
  </code></pre>
  
  <p>And I want to remove all blank values. But when I run this:</p>
  
  <pre><code>puts scores.reject(&amp;:empty?)
  </code></pre>
  
  <p>I get an error:</p>
  
  <pre><code>undefined method `empty' for 1:Fixnum
  </code></pre>
  
  <p>How can I remove values that are not integers from my array in a one step process? I am using Ruby 1.9.3.</p>