Skip to content
instance method

Enumerator::Product#size

() -> (::Integer | ::Float | nil)
obj.size → int, Float::INFINITY or nil

Returns the total size of the enumerator product calculated by multiplying the sizes of enumerables in the product. If any of the enumerables reports its size as nil or Float::INFINITY, that value is returned as the size.

See also #rewind #inspect also in 4.1 · 3.4 · 3.3 · 3.2