diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-29 08:05:32 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-29 08:05:32 +0000 |
| commit | 5928d4c1e01a076c3c992b3a003c167a5d4b7600 (patch) | |
| tree | 3e43148d3114380fff1418aa3ff6d01b157a97e4 /lib/singleton.rb | |
| parent | ac9d16f8b62f24b7bb7190888b6bc28cf2e75af9 (diff) | |
| download | ruby-5928d4c1e01a076c3c992b3a003c167a5d4b7600.tar.gz ruby-5928d4c1e01a076c3c992b3a003c167a5d4b7600.tar.xz ruby-5928d4c1e01a076c3c992b3a003c167a5d4b7600.zip | |
2000-02-29
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/singleton.rb')
| -rw-r--r-- | lib/singleton.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/singleton.rb b/lib/singleton.rb index 2785c7713..235ba898f 100644 --- a/lib/singleton.rb +++ b/lib/singleton.rb @@ -16,8 +16,8 @@ module Singleton klass.instance_eval %{ @__instance__ = nil def instance + Thread.critical = true unless @__instance__ - Thread.critical = true begin @__instance__ = new ensure |
