core/enumerable.rbs in rbs-1.7.1 vs core/enumerable.rbs in rbs-1.8.0

- old
+ new

@@ -61,11 +61,11 @@ # ary.count #=> 4 # ary.count(2) #=> 2 # ary.count{ |x| x%2==0 } #=> 3 # ``` def count: () -> Integer - | (?untyped) -> Integer + | (Elem) -> Integer | () { (Elem) -> boolish } -> Integer def cycle: (?Integer n) { (Elem arg0) -> untyped } -> NilClass | (?Integer n) -> ::Enumerator[Elem, NilClass] @@ -128,11 +128,11 @@ | [U] (untyped) { (Elem) -> U } -> ::Array[U] def group_by: [U] () { (Elem arg0) -> U } -> ::Hash[U, ::Array[Elem]] | () -> ::Enumerator[Elem, ::Array[Elem]] - def `include?`: (untyped arg0) -> bool + def `include?`: (Elem arg0) -> bool def inject: (untyped init, Symbol method) -> untyped | (Symbol method) -> untyped | [A] (A initial) { (A, Elem) -> A } -> A | () { (Elem, Elem) -> Elem } -> Elem @@ -339,10 +339,10 @@ | () -> ::Enumerator[Elem, Array[untyped]] def map: [U] () { (Elem arg0) -> U } -> ::Array[U] | () -> ::Enumerator[Elem, ::Array[untyped]] - def member?: (untyped arg0) -> bool + def member?: (Elem arg0) -> bool alias reduce inject # Returns an array containing the items in *enum* . #