⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
Range
/
View File Name :
cover%3f-i.ri
U:RDoc::AnyMethod[iI"cover?:ETI"Range#cover?;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"HReturns <code>true</code> if +obj+ is between the begin and end of ;TI"the range.;To:RDoc::Markup::BlankLine o; ; [I"OThis tests <code>begin <= obj <= end</code> when #exclude_end? is +false+ ;TI"Fand <code>begin <= obj < end</code> when #exclude_end? is +true+.;T@o; ; [I"IIf called with a Range argument, returns <code>true</code> when the ;TI"-given range is covered by the receiver, ;TI"Nby comparing the begin and end values. If the argument can be treated as ;TI"Ia sequence, this method treats it that way. In the specific case of ;TI"J<code>(a..b).cover?(c...d)</code> with <code>a <= c && b < d</code>, ;TI"Hthe end of the sequence must be calculated, which may exhibit poor ;TI"3performance if <code>c</code> is non-numeric. ;TI":Returns <code>false</code> if the begin value of the ;TI"Lrange is larger than the end value. Also returns +false+ if one of the ;TI"Ninternal calls to <code><=></code> returns +nil+ (indicating the objects ;TI"are not comparable).;T@o:RDoc::Markup::Verbatim; [I"&("a".."z").cover?("c") #=> true ;TI"'("a".."z").cover?("5") #=> false ;TI"&("a".."z").cover?("cc") #=> true ;TI"'("a".."z").cover?(1) #=> false ;TI"&(1..5).cover?(2..3) #=> true ;TI"'(1..5).cover?(0..6) #=> false ;TI"%(1..5).cover?(1...6) #=> true;T:@format0: @fileI"range.c;T:0@omit_headings_from_table_of_contents_below0I"Mrng.cover?(obj) -> true or false rng.cover?(range) -> true or false ;T0[ I" (p1);T@*FI" Range;TcRDoc::NormalClass00