⚝
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
/
Array
/
View File Name :
any%3f-i.ri
U:RDoc::AnyMethod[iI" any?:ETI"Array#any?;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"EReturns +true+ if any element of +self+ meets a given criterion.;To:RDoc::Markup::BlankLine o; ; [I"[With no block given and no argument, returns +true+ if +self+ has any truthy element, ;TI"+false+ otherwise:;To:RDoc::Markup::Verbatim; [I"$[nil, 0, false].any? # => true ;TI""[nil, false].any? # => false ;TI"[].any? # => false ;T:@format0o; ; [I"VWith a block given and no argument, calls the block with each element in +self+; ;TI"Mreturns +true+ if the block returns any truthy value, +false+ otherwise:;To;; [I"7[0, 1, 2].any? {|element| element > 1 } # => true ;TI"8[0, 1, 2].any? {|element| element > 2 } # => false ;T; 0o; ; [I"SIf argument +obj+ is given, returns +true+ if +obj+.
===
any element, ;TI"+false+ otherwise:;To;; [ I"-['food', 'drink'].any?(/foo/) # => true ;TI".['food', 'drink'].any?(/bar/) # => false ;TI"[].any?(/foo/) # => false ;TI"![0, 1, 2].any?(1) # => true ;TI""[0, 1, 2].any?(3) # => false ;T; 0o; ; [I"Related: Enumerable#any?;T: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"oarray.any? -> true or false array.any? {|element| ... } -> true or false array.any?(obj) -> true or false ;T0[ I"(*args);T@.FI" Array;TcRDoc::NormalClass00