HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/ri/3.0.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 a count of specified elements.;To:RDoc::Markup::BlankLineo;
;	[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 <tt>eql?</tt> 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 <tt>eql?</tt> 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