title: How can I select the longest string from a Ruby array?
body: <p>However above [duplicate suggestion] is for multidimensional array, not targeting the simpler case I am posing here.</p>
  
  <p>For example if I have:</p>
  
  <pre><code>'one','two','three','four','five'
  </code></pre>
  
  <p>I want to select <code>three</code> as it is the longest string. I tried: </p>
  
  <pre><code>['one','two','three','four','five'].select{|char_num| char_num.size.max} 
  </code></pre>
  
  <p>but <a href="http://ruby-doc.org/core-2.1.1/Enumerable.html#method-i-max">Enumerable#max</a> doesn't return the right result.</p>