core/range.rbs in rbs-1.1.1 vs core/range.rbs in rbs-1.2.0

- old
+ new

@@ -97,11 +97,11 @@ # Returns the object that defines the beginning of the range. # # ```ruby # (1..10).begin #=> 1 # ``` - def begin: () -> Elem + def begin: () -> Elem # Begin-less ranges have type of Range[Integer?] def bsearch: [U] () { (Elem) -> boolish } -> U? def cover?: (untyped obj) -> bool @@ -112,10 +112,10 @@ # # ```ruby # (1..10).end #=> 10 # (1...10).end #=> 10 # ``` - def `end`: () -> Elem + def `end`: () -> Elem # End-less ranges have type of Range[Integer?] # Returns `true` if the range excludes its end value. # # ```ruby # (1..5).exclude_end? #=> false