Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
Enumerable
/
//opt/alt/ruby27/share/ri/system/Enumerable/min_by-i.ri
U:RDoc::AnyMethod[iI"min_by:ETI"Enumerable#min_by;TF:privateo:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I">Returns the object in <i>enum</i> that gives the minimum ;TI" value from the given block.;To:RDoc::Markup::BlankLine o; ; [I"=If no block is given, an enumerator is returned instead.;T@o:RDoc::Markup::Verbatim; [I"!a = %w(albatross dog horse) ;TI"+a.min_by { |x| x.length } #=> "dog" ;T:@format0o; ; [I"EIf the +n+ argument is given, minimum +n+ elements are returned ;TI"Fas an array. These +n+ elements are sorted by the value from the ;TI"given block.;T@o;; [I"!a = %w[albatross dog horse] ;TI"7p a.min_by(2) {|x| x.length } #=> ["dog", "horse"];T; 0: @fileI"enum.c;T:0@omit_headings_from_table_of_contents_below0I"�enum.min_by {|obj| block } -> obj enum.min_by -> an_enumerator enum.min_by(n) {|obj| block } -> array enum.min_by(n) -> an_enumerator ;T0[ I"(*args);T@ FI"Enumerable;TcRDoc::NormalModule00