Open ksss opened 1 week ago
Argument of Enumerator#initialize allows nil, #call and #to_int object. Included Float::INFINITY in #to_int.
Enumerator#initialize
nil
#call
#to_int
Float::INFINITY
https://github.com/ruby/ruby/blob/ac9e84df3d0b06e62498aafbca99e8f8475ec142/enumerator.c#L437-L451
Argument of
Enumerator#initialize
allowsnil
,#call
and#to_int
object. IncludedFloat::INFINITY
in#to_int
.https://github.com/ruby/ruby/blob/ac9e84df3d0b06e62498aafbca99e8f8475ec142/enumerator.c#L437-L451