mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
8d21f666b8
commit
bbf873521a
1 changed files with 13 additions and 0 deletions
13
enum.c
13
enum.c
|
@ -5107,6 +5107,19 @@ enum_compact(VALUE obj)
|
|||
* For some methods, though, the usage would not make sense,
|
||||
* and so it is not shown. Example: #tally would find exactly one of each Hash entry.
|
||||
*
|
||||
* == Extended Methods
|
||||
*
|
||||
* A Enumerable class may define extended methods. This section describes the standard
|
||||
* behavior of extension methods for reference purposes.
|
||||
*
|
||||
* === #size
|
||||
*
|
||||
* Returns the size of elements. The size is defined as the number of iterations
|
||||
* the #each method would perform over the elements.
|
||||
* If #each method won't finish and its elements are Numeric, the size is +Infinite+.
|
||||
* If #each method won't finish and its elements are not Numeric, the size is +nil+.
|
||||
* If #each method don't work fine, raise TypeError.
|
||||
*
|
||||
*/
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue