From 4a6facc2d683d1dbb67ded8a9f4d7cd10a9fd8ad Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 20 Jun 2022 13:35:21 +0900 Subject: [Feature #18788] [DOC] String options to `Regexp.new` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Janosch Mùˆller --- re.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 're.c') diff --git a/re.c b/re.c index 39d4fc046f..3e059b6287 100644 --- a/re.c +++ b/re.c @@ -3665,6 +3665,11 @@ str_to_option(VALUE str) * * Optional argument +options+ is one of the following: * + * - A String of options: + * + * Regexp.new('foo', 'i') # => /foo/i + * Regexp.new('foo', 'im') # => /foo/im + * * - The logical OR of one or more of the constants * Regexp::EXTENDED, Regexp::IGNORECASE, and Regexp::MULTILINE: * -- cgit v1.2.1