[前][次][番号順一覧][スレッド一覧]

ruby-changes:30982

From: zzak <ko1@a...>
Date: Fri, 27 Sep 2013 01:07:18 +0900 (JST)
Subject: [ruby-changes:30982] zzak:r43061 (trunk): * re.c: [DOC] arguments of Regexp::union receive #to_regexp [Bug #8205]

zzak	2013-09-27 01:07:10 +0900 (Fri, 27 Sep 2013)

  New Revision: 43061

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43061

  Log:
    * re.c: [DOC] arguments of Regexp::union receive #to_regexp [Bug #8205]

  Modified files:
    trunk/ChangeLog
    trunk/re.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43060)
+++ ChangeLog	(revision 43061)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Sep 27 01:05:00 2013  Zachary Scott  <e@z...>
+
+	* re.c: [DOC] arguments of Regexp::union receive #to_regexp [Bug #8205]
+
 Fri Sep 27 00:39:27 2013  Zachary Scott  <e@z...>
 
 	* struct.c: [DOC] grammar of ArgumentError in Struct.new [Bug #8936]
Index: re.c
===================================================================
--- re.c	(revision 43060)
+++ re.c	(revision 43061)
@@ -3276,6 +3276,9 @@ rb_reg_s_union(VALUE self, VALUE args0) https://github.com/ruby/ruby/blob/trunk/re.c#L3276
  *     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)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]