title: Ruby array.select multiline block
body: <p>I am filtering an array in ruby and using a <code>.select</code> block to do so. The conditions are sufficiently complex that a single line block is hideous but not that large so a separate method seems like overkill. Thus I want to use a multiline block. However I am unsure of the syntax.</p>
  
  <pre><code>filtered_array = base_array.select do |elem|
      return false if condition1
      return false if condition2
      return true
  end
  </code></pre>
  
  <p>The above is clearly incorrect as <code>return</code> exits the method, not the block but gives an idea of what I am looking for.</p>
  
  <p>I could also use multiple select statements but that seems to obfuscate what I am trying to do. Note that the above conditions are sufficiently complex that using logical operators to bind them results in a mess.</p>