📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 13:44:31
📂
/ (Root)
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
Array
📍 /opt/alt/ruby27/share/ri/system/Array
🔄 Refresh
✏️
Editing: count-i.ri
Read Only
U:RDoc::AnyMethod[iI" count:ETI"Array#count;TF:privateo: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
💾 Save Changes
❌ Cancel