summaryrefslogtreecommitdiff
path: root/prelude.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-24 18:10:37 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-24 18:10:37 (GMT)
commit85e3b4703208af36a0b15ecaf12c17f658138d8c (patch)
tree1711446eccccdea3a94f533f90e97a333484a1a6 /prelude.rb
parent5e1c401ff5f72bb5e2bc6eb844b65977881a71c9 (diff)
* prelude.rb: fix Mutex#synchronize definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'prelude.rb')
-rw-r--r--prelude.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/prelude.rb b/prelude.rb
index 423c9c4..6451b8f 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