ÿØÿà JFIF ÿÛ „ ( %!1!%)+//.383,7(-.+
-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ ¥2" ÿÄ ÿÄ J ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ ÿÄ * !1AQa‘"2q3±ð#b¡ÿÚ ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁTÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßwpŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
?>
.........................................
.............................................................................
ÿØÿà JFIF ÿÛ „
(
%!1!%)+//.383,7(-.+
-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ ¥2" ÿÄ
ÿÄ J ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ
ÿÄ * !1AQa‘"2q3±ð#b¡ÿÚ
? ¼QxJQaÍuò¸Zö
Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁTÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßwpŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
?>
.........................................
.............................................................................
????????????????????????????????????
????????????????????????????????????
ÿØÿà JFIF ÿÛ „ ( %!1!%)+//.383,7(-.+
-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ ¥2" ÿÄ ÿÄ J ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ ÿÄ * !1AQa‘"2q3±ð#b¡ÿÚ ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁTÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßwpŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
?>
.........................................
.............................................................................
ÿØÿà JFIF ÿÛ „
(
%!1!%)+//.383,7(-.+
-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ ¥2" ÿÄ
ÿÄ J ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ
ÿÄ * !1AQa‘"2q3±ð#b¡ÿÚ
? ¼QxJQaÍuò¸Zö
Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁTÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßwpŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
?>
.........................................
.............................................................................
????????????????????????????????????
????????????????????????????????????
U:RDoc::AnyMethod[iI"max:ETI"Range#max;TF:publico:RDoc::Markup::Document:@parts[&o:RDoc::Markup::Paragraph; [I"*Returns the maximum value in +self+, ;TI"@using method #<=> or a given block for comparison.;To:RDoc::Markup::BlankLine o;
; [I"*With no argument and no block given, ;TI"2returns the maximum-valued element of +self+.;T@o:RDoc::Markup::Verbatim; [I"(1..4).max # => 4
;TI"('a'..'d').max # => "d"
;TI"(-4..-1).max # => -1
;T:@format0o;
; [I"GWith non-negative integer argument +n+ given, and no block given, ;TI"Creturns the +n+ maximum-valued elements of +self+ in an array:;T@o;; [ I"#(1..4).max(2) # => [4, 3]
;TI"'('a'..'d').max(2) # => ["d", "c"]
;TI"%(-4..-1).max(2) # => [-1, -2]
;TI")(1..4).max(50) # => [4, 3, 2, 1]
;T;
0o;
; [I"'If a block is given, it is called:;T@o:RDoc::Markup::List:
@type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o;
; [I"1First, with the first two element of +self+.;To;;0; [o;
; [I"VThen, sequentially, with the so-far maximum value and the next element of +self+.;T@o;
; [I"To illustrate:;T@o;; [I"3(1..4).max {|a, b| p [a, b]; a <=> b } # => 4
;T;
0o;
; [I"Output:;T@o;; [I"[2, 1]
;TI"[3, 2]
;TI"[4, 3]
;T;
0o;
; [I")With no argument and a block given, ;TI" b) } # => 1
;T;
0o;
; [I"FWith non-negative integer argument +n+ given, and a block given, ;TI"Nreturns the return values of the last +n+ calls to the block in an array:;T@o;; [I"5(1..4).max(2) {|a, b| -(a <=> b) } # => [1, 2]
;TI";(1..4).max(50) {|a, b| -(a <=> b) } # => [1, 2, 3, 4]
;T;
0o;
; [I"+Returns an empty array if +n+ is zero:;T@o;; [I"0(1..4).max(0) # => []
;TI"0(1..4).max(0) {|a, b| -(a <=> b) } # => []
;T;
0o;
; [I"(Returns +nil+ or an empty array if:;T@o;;;;[o;;0; [o;
; [I"?The begin value of the range is larger than the end value:;T@o;; [ I"1(4..1).max # => nil
;TI"0(4..1).max(2) # => []
;TI"1(4..1).max {|a, b| -(a <=> b) } # => nil
;TI"0(4..1).max(2) {|a, b| -(a <=> b) } # => []
;T;
0o;;0; [o;
; [I"EThe begin value of an exclusive range is equal to the end value:;T@o;; [ I"3(1...1).max # => nil
;TI"2(1...1).max(2) # => []
;TI"3(1...1).max {|a, b| -(a <=> b) } # => nil
;TI"2(1...1).max(2) {|a, b| -(a <=> b) } # => []
;T;
0o;
; [I"#Raises an exception if either:;T@o;;;;[o;;0; [o;
; [I"/+self+ is a endless range: (1..).;To;;0; [o;
; [I"6A block is given and +self+ is a beginless range.;T@o;
; [I"&Related: Range#min, Range#minmax.;T:
@fileI"range.c;T:0@omit_headings_from_table_of_contents_below0I"]max -> object
max(n) -> array
max {|a, b| ... } -> object
max(n) {|a, b| ... } -> array
;T0[ I"(*args);T@~FI"
Range;TcRDoc::NormalClass00