⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Range
/
Edit File: max-i.ri
U:RDoc::AnyMethod[iI"max:ETI"Range#max;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"DReturns the maximum value in the range, or an array of maximum ;TI"7values in the range if given an \Integer argument.;To:RDoc::Markup::BlankLine o; ; [I"FFor inclusive ranges with an end, the maximum value of the range ;TI")is the same as the end of the range.;T@o; ; [ I"BIf an argument or block is given, or +self+ is an exclusive, ;TI"Dnon-numeric range, calls Enumerable#max (via +super+) with the ;TI"Gargument and/or block to get the maximum values, unless +self+ is ;TI"=a beginless range, in which case it raises a RangeError.;T@o; ; [ I"IIf +self+ is an exclusive, integer range (both start and end of the ;TI"Jrange are integers), and no arguments or block are provided, returns ;TI"Jlast value in the range (1 before the end). Otherwise, if +self+ is ;TI"5an exclusive, numeric range, raises a TypeError.;T@o; ; [ I"CReturns +nil+ if the begin value of the range larger than the ;TI"Aend value. Returns +nil+ if the begin value of an exclusive ;TI"Hrange is equal to the end value. Raises a RangeError if called on ;TI"an endless range.;T@o; ; [I"Examples:;To:RDoc::Markup::Verbatim; [I"0(10..20).max #=> 20 ;TI"6(10..20).max(2) #=> [20, 19] ;TI"0(10...20).max #=> 19 ;TI"6(10...20).max(2) #=> [19, 18] ;TI"0(10...20).max{|x, y| -x <=> -y } #=> 10 ;TI"5(10...20).max(2){|x, y| -x <=> -y } #=> [10, 11];T:@format0: @fileI"range.c;T:0@omit_headings_from_table_of_contents_below0I"�rng.max -> obj rng.max {| a,b | block } -> obj rng.max(n) -> obj rng.max(n) {| a,b | block } -> obj ;T0[ I"(*args);T@1FI" Range;TcRDoc::NormalClass00
Simpan