From 75e77d87db71f840e363d47037cbe50f23c77a2b Mon Sep 17 00:00:00 2001 From: Soutaro Matsumoto Date: Wed, 6 Jul 2022 00:36:32 +0900 Subject: [PATCH] Let `Regexp.new` accept any `options` value --- core/regexp.rbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/regexp.rbs b/core/regexp.rbs index 32ebef613..fd6d9b102 100644 --- a/core/regexp.rbs +++ b/core/regexp.rbs @@ -760,7 +760,7 @@ class Regexp # r3 = Regexp.new(r2) #=> /cat/i # r4 = Regexp.new('dog', Regexp::EXTENDED | Regexp::IGNORECASE) #=> /dog/ix # - def initialize: (String string, ?Integer | nil | false options, ?String kcode) -> Object + def initialize: (String string, ?Integer | nil | false | top options, ?String kcode) -> Object | (Regexp regexp) -> void #