core/string.rbs in rbs-3.0.4 vs core/string.rbs in rbs-3.1.0
- old
+ new
@@ -2598,11 +2598,13 @@
# Output:
#
# <<cruel>> <<world>>
# rceu lowlr
#
- def scan: (Regexp | string pattern) -> Array[String | Array[String]]
- | (Regexp | string pattern) { (String | Array[String]) -> void } -> self
+ def scan: (Regexp pattern) -> Array[String | Array[String]]
+ | (Regexp pattern) { (String | Array[String]) -> void } -> self
+ | (string pattern) -> Array[String]
+ | (string pattern) { (String) -> void } -> self
# <!--
# rdoc-file=string.c
# - scrub(replacement_string = default_replacement) -> new_string
# - scrub{|bytes| ... } -> new_string