diff --git a/core/enumerator.rbs b/core/enumerator.rbs index c87367155..addb1d48e 100644 --- a/core/enumerator.rbs +++ b/core/enumerator.rbs @@ -613,7 +613,18 @@ end # This type of objects can be created by Enumerable#chain and Enumerator#+. # class Enumerator::Chain[out Elem] < Enumerator[Elem, void] - include Enumerable[Elem] + # + # Generates a new enumerator object that iterates over the elements of given + # enumerable objects in sequence. + # + # e = Enumerator::Chain.new(1..3, [4, 5]) + # e.to_a #=> [1, 2, 3, 4, 5] + # e.size #=> 5 + # + def initialize: (*_Each[Elem] enums) -> void #