Skip to content
instance method

Enumerator::Chain#each

() { (Elem) -> void } -> self
() -> ::Enumerator[Elem, self]
obj.each(*args) { |...| ... } → obj
obj.each(*args) → enumerator

Iterates over the elements of the first enumerable by calling the “each” method on it with the given arguments, then proceeds to the following enumerables in sequence until all of the enumerables are exhausted.

If no block is given, returns an enumerator.

See also .new #inspect #rewind also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0