diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | prelude.rb | 12 |
2 files changed, 9 insertions, 7 deletions
@@ -1,3 +1,7 @@ +Sat Aug 25 03:08:57 2007 Koichi Sasada <ko1@atdot.net> + + * prelude.rb: fix Mutex#synchronize definition. + Sat Aug 25 02:08:45 2007 Yukihiro Matsumoto <matz@ruby-lang.org> * array.c (rb_ary_s_try_convert): a new class method to convert diff --git a/prelude.rb b/prelude.rb index 423c9c423e..6451b8f74a 100644 --- a/prelude.rb +++ b/prelude.rb @@ -2,13 +2,11 @@ # Mutex class Mutex - class Mutex - def synchronize - self.lock - yield - ensure - self.unlock - end + def synchronize + self.lock + yield + ensure + self.unlock end end |