Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. 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.2