Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
thread-self
/
root
/
proc
/
self
/
root
/
opt
/
ruby-2.7
/
usr
/
share
/
ri
/
2.7.0
/
system
/
Array
/
//proc/thread-self/root/proc/self/root/opt/ruby-2.7/usr/share/ri/2.7.0/system/Array/count-i.ri
U:RDoc::AnyMethod[iI" count:ETI"Array#count;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"$Returns the number of elements.;To:RDoc::Markup::BlankLine o; ; [I"NIf an argument is given, counts the number of elements which equal +obj+ ;TI"using <code>==</code>.;T@o; ; [I"LIf a block is given, counts the number of elements for which the block ;TI"returns a true value.;T@o:RDoc::Markup::Verbatim; [ I"ary = [1, 2, 4, 2] ;TI"&ary.count #=> 4 ;TI"&ary.count(2) #=> 2 ;TI"%ary.count {|x| x%2 == 0} #=> 3;T:@format0: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"nary.count -> int ary.count(obj) -> int ary.count {|item| block} -> int ;T0[ I"(*args);T@FI" Array;TcRDoc::NormalClass00