diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-26 16:07:10 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-26 16:07:10 +0000 |
commit | dc308ee37bd6595554a860950d64a70c9475cfbd (patch) | |
tree | 32c9067bf30bfb917ecd64acb71f639c71b875fd /re.c | |
parent | b96a432e00c4121b15f63272858bb6f257d4c16e (diff) | |
download | ruby-dc308ee37bd6595554a860950d64a70c9475cfbd.tar.gz |
* re.c: [DOC] arguments of Regexp::union receive #to_regexp [Bug #8205]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3276,6 +3276,9 @@ rb_reg_s_union(VALUE self, VALUE args0) * Regexp.union("skiing", "sledding") #=> /skiing|sledding/ * Regexp.union(["skiing", "sledding"]) #=> /skiing|sledding/ * Regexp.union(/dogs/, /cats/i) #=> /(?-mix:dogs)|(?i-mx:cats)/ + * + * Note: the arguments for ::union will try to be converted into a regular + * expression literal via #to_regexp. */ static VALUE rb_reg_s_union_m(VALUE self, VALUE args) |