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