Flowdock
method

min_by

Importance_1
min_by() public

Returns the object in enum that gives the minimum value from the given block.

If no block is given, an enumerator is returned instead.

a = %w(albatross dog horse)
a.min_by {|x| x.length }   #=> "dog"
Show source
Register or log in to add new notes.