Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Enumerator::Product#rewind

obj.rewind → obj

Rewinds the product enumerator by calling the “rewind” method on each enumerable in reverse order. Each call is performed only if the enumerable responds to the method.

See also #inspect #size #each also in 4.1 · 4.0 · 3.4 · 3.3