title: Return object in collection that has the highest (but not higher) or equal attribute value compared to given value
body: <p>I have a collection of five objects.</p>
  
  <p>The have a number attribute <code>day</code> with a unique value ranging 0-6.</p>
  
  <p>If compared to a value, let's say 5 or 0, how could I find the object with equal attribute value OR the highest value in collection but not exceeding the given?</p>
  
  <pre><code>collection.map(&amp;:day)
  =&gt; [0, 2, 3, 4, 6]
  </code></pre>
  
  <p>The desired return when comparing <code>collection</code> with value 5 should return the object with <code>day</code> value 4.</p>
  
  <p>The desired return when comparing <code>collection</code> with value 0 should return the object with <code>day</code> value 0.</p>