Method: Enumerator#each_with_index
- Defined in:
- enumerator.c
permalink #each_with_index {|(*args), idx| ... } ⇒ Object #each_with_index ⇒ Object
Same as Enumerator#with_index, except each_with_index does not receive an offset argument.
|
# File 'enumerator.c'
/*
* call-seq:
* e.each_with_index {|(*args), idx| ... }
* e.each_with_index
*
* Same as Enumerator#with_index, except each_with_index does not
* receive an offset argument.
*
*/
static VALUE
enumerator_each_with_index(VALUE obj)
{
return enumerator_with_index(0, NULL, obj);
}
|