This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

with_index

        # Enumerator::Lazy.with_index

(from ruby core)
### Implementation from Lazy
---
    lazy.with_index(offset = 0) {|(*args), idx| block }
    lazy.with_index(offset = 0)

---

If a block is given, returns a lazy enumerator that will iterate over
the given block for each element with an index, which starts from
`offset`, and returns a lazy enumerator that yields the same values
(without the index).

If a block is not given, returns a new lazy enumerator that includes the
index, starting from `offset`.

`offset`
:   the starting index to use


See Enumerator#with_index.



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.