Method: Enumerator#each_with_index
- Defined in:
- enumerator.c
#each_with_index {|(*args), idx| ... } ⇒ Object #each_with_index ⇒ Object
Same as Enumerator#with_index(0), i.e. there is no starting offset.
If no block is given, a new Enumerator is returned that includes the index.
695 696 697 698 699 |
# File 'enumerator.c', line 695 static VALUE enumerator_each_with_index(VALUE obj) { return enumerator_with_index(0, NULL, obj); } |