⚝
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 :
~
/
proc
/
self
/
root
/
usr
/
share
/
ri
/
3.0.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
true
if +obj+ is between the begin and end of ;TI"the range.;To:RDoc::Markup::BlankLine o; ; [I"OThis tests
begin <= obj <= end
when #exclude_end? is +false+ ;TI"Fand
begin <= obj < end
when #exclude_end? is +true+.;T@o; ; [I"IIf called with a Range argument, returns
true
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
(a..b).cover?(c...d)
with
a <= c && b < d
, ;TI"Hthe end of the sequence must be calculated, which may exhibit poor ;TI"3performance if
c
is non-numeric. ;TI":Returns
false
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
<=>
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