⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.189
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Array
/
Edit File: 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+.<tt>===</tt> 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
Simpan