core/string.rbs in rbs-1.0.4 vs core/string.rbs in rbs-1.0.5
- old
+ new
@@ -89,10 +89,11 @@
# "abcdef" <=> "abcdef" #=> 0
# "abcdef" <=> "abcdefg" #=> -1
# "abcdef" <=> "ABCDEF" #=> 1
# "abcdef" <=> 1 #=> nil
#
- def <=>: (untyped other) -> Integer?
+ def <=>: (string other) -> Integer
+ | (untyped other) -> Integer?
# Equality---Returns whether `str` == `obj`, similar to Object#==.
#
# If `obj` is not an instance of String but responds to `to_str`, then the two
# strings are compared using `obj.==`.