Misc #10469 ยป array_each_return_docs.patch
array.c | ||
---|---|---|
* ary.each -> Enumerator
|
||
*
|
||
* Calls the given block once for each element in +self+, passing that element
|
||
* as a parameter.
|
||
* as a parameter. Returns the array itself.
|
||
*
|
||
* An Enumerator is returned if no block is given.
|
||
* If no block is given, an Enumerator is returned.
|
||
*
|
||
* a = [ "a", "b", "c" ]
|
||
* a.each {|x| print x, " -- " }
|