Skip to content

Commit

Permalink
Merge pull request #1059 from ruby/regexp-rbs
Browse files Browse the repository at this point in the history
Let `Regexp.new` accept any `options` value
  • Loading branch information
soutaro authored Jul 6, 2022
2 parents 14abbba + 75e77d8 commit 799ba25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/regexp.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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

# <!--
Expand Down

0 comments on commit 799ba25

Please sign in to comment.