Project

General

Profile

Misc #10469 ยป array_each_return_docs.patch

jaredbeck (Jared Beck), 11/03/2014 06:57 AM

View differences:

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, " -- " }
    (1-1/1)