1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
zzak 2013-09-26 16:07:10 +00:00
parent b96a432e00
commit dc308ee37b
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Fri Sep 27 01:05:00 2013 Zachary Scott <e@zzak.io>
* re.c: [DOC] arguments of Regexp::union receive #to_regexp [Bug #8205]
Fri Sep 27 00:39:27 2013 Zachary Scott <e@zzak.io>
* struct.c: [DOC] grammar of ArgumentError in Struct.new [Bug #8936]

3
re.c
View file

@ -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)