ruby / rbs

Type Signature for Ruby
Other
1.91k stars 201 forks source link

Enumerator#initialize support `nil`, `#call` and `#to_int` #1904

Open ksss opened 1 week ago

ksss commented 1 week ago

Argument of Enumerator#initialize allows nil, #call and #to_int object. Included Float::INFINITY in #to_int.

https://github.com/ruby/ruby/blob/ac9e84df3d0b06e62498aafbca99e8f8475ec142/enumerator.c#L437-L451