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

ruby-changes:13398

From: naruse <ko1@a...>
Date: Wed, 30 Sep 2009 10:09:13 +0900 (JST)
Subject: [ruby-changes:13398] Ruby:r25168 (trunk): * re.c (last_match): add "thread and method" to the scope.

naruse	2009-09-30 10:08:44 +0900 (Wed, 30 Sep 2009)

  New Revision: 25168

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

  Log:
    * re.c (last_match): add "thread and method" to the scope.

  Modified files:
    trunk/re.c

Index: re.c
===================================================================
--- re.c	(revision 25167)
+++ re.c	(revision 25168)
@@ -3392,7 +3392,7 @@
  *  <code>MatchData</code> object.
  *  <em>n</em> can be a string or symbol to reference a named capture.
  *
- *  Note that the <code>last_match</code> is local to the scope
+ *  Note that the <code>last_match</code> is local to the thread and method scope
  *  of the method that did the pattern match.
  *
  *     /c(.)t/ =~ 'cat'        #=> 0

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

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