Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

Enumerator::Product#rewind

() -> self
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.0 · 3.4 · 3.3 · 3.2