summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
Diffstat (limited to 're.c')
-rw-r--r--re.c5
1 files changed, 5 insertions, 0 deletions
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:
*