method
min_by
min_by()
public
Returns the object in enum that gives the minimum value from the given block.
a = %w(albatross dog horse) a.min_by {|x| x.length } #=> "dog"
min_by()
public
Returns the object in enum that gives the minimum value from the given block.
a = %w(albatross dog horse) a.min_by {|x| x.length } #=> "dog"