Repository URL to install this package:
|
Version:
2.2.2-1 ▾
|
U:RDoc::AnyMethod[iI"min:ETI"Enumerable#min;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"CReturns the object in <i>enum</i> with the minimum value. The ;TI"Gfirst form assumes all objects implement <code>Comparable</code>; ;TI":the second uses the block to return <em>a <=> b</em>.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"!a = %w(albatross dog horse)
;TI"=a.min #=> "albatross"
;TI"7a.min { |a, b| a.length <=> b.length } #=> "dog"
;T:@format0o;
; [I"EIf the +n+ argument is given, minimum +n+ elements are returned ;TI"as an array.;T@o;; [I"!a = %w[albatross dog horse]
;TI"Ha.min(2) #=> ["albatross", "dog"]
;TI"Ca.min(2) {|a, b| a.length <=> b.length } #=> ["dog", "horse"];T;
0:
@fileI"enum.c;T:0@omit_headings_from_table_of_contents_below0I"enum.min -> obj
enum.min {| a,b | block } -> obj
enum.min(n) -> array
enum.min(n) {| a,b | block } -> array
;T0[ I"(p1 = v1);T@FI"Enumerable;TcRDoc::NormalModule00