⚝
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 :
count-i.ri
U:RDoc::AnyMethod[iI" count:ETI"Array#count;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"+Returns a count of specified elements.;To:RDoc::Markup::BlankLine o; ; [I"FWith no argument and no block, returns the count of all elements:;To:RDoc::Markup::Verbatim; [I"[0, 1, 2].count # => 3 ;TI"[].count # => 0 ;T:@format0o; ; [I"OWith argument +obj+, returns the count of elements
eql?
to +obj+:;To;; [I""[0, 1, 2, 0].count(0) # => 2 ;TI"[0, 1, 2].count(3) # => 0 ;T; 0o; ; [I"LWith no argument and a block given, calls the block with each element; ;TI"Nreturns the count of elements for which the block returns a truthy value:;To;; [I"7[0, 1, 2, 3].count {|element| element > 1} # => 2 ;T; 0o; ; [I"QWith argument +obj+ and a block given, issues a warning, ignores the block, ;TI">and returns the count of elements
eql?
to +obj+:;T: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"iarray.count -> an_integer array.count(obj) -> an_integer array.count {|element| ... } -> an_integer ;T0[ I"(*args);T@(FI" Array;TcRDoc::NormalClass00