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

ruby-changes:6496

From: nobu <ko1@a...>
Date: Thu, 10 Jul 2008 22:07:46 +0900 (JST)
Subject: [ruby-changes:6496] Ruby:r18012 (trunk): * lib/pstore.rb (PStore#transaction): return the result from the

nobu	2008-07-10 22:06:03 +0900 (Thu, 10 Jul 2008)

  New Revision: 18012

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

  Log:
    * lib/pstore.rb (PStore#transaction): return the result from the
      block.  [ruby-core:17718]

  Modified files:
    trunk/ChangeLog
    trunk/lib/pstore.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 18011)
+++ ChangeLog	(revision 18012)
@@ -1,3 +1,8 @@
+Thu Jul 10 22:06:00 2008  Nobuyoshi Nakada  <nobu@r...>
+
+	* lib/pstore.rb (PStore#transaction): return the result from the
+	  block.  [ruby-core:17718]
+
 Thu Jul 10 21:15:49 2008  Masaki Suketa  <masaki.suketa@n...>
 
 	* test/win32ole/test_win32ole_typelib.rb: add some illegal argument
Index: lib/pstore.rb
===================================================================
--- lib/pstore.rb	(revision 18011)
+++ lib/pstore.rb	(revision 18012)
@@ -345,9 +345,9 @@
         end
       end
     end
+    value
   ensure
     @transaction = false
-    value
   end
   
   private

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

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