From 1569854787ca2b6551e0bbcc1eca2e5f81f75264 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 6 Oct 2007 05:40:45 +0000 Subject: add an example for Regexp.union document. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- re.c | 1 + 1 file changed, 1 insertion(+) diff --git a/re.c b/re.c index 12dad3910..46bfd0b60 100644 --- a/re.c +++ b/re.c @@ -2056,6 +2056,7 @@ rb_reg_s_try_convert(VALUE dummy, VALUE re) * Regexp.union("penzance") #=> /penzance/ * Regexp.union("a+b*c") #=> /a\+b\*c/ * Regexp.union("skiing", "sledding") #=> /skiing|sledding/ + * Regexp.union(["skiing", "sledding"]) #=> /skiing|sledding/ * Regexp.union(/dogs/, /cats/i) #=> /(?-mix:dogs)|(?i-mx:cats)/ */ static VALUE -- cgit