2000-02-29

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2000-02-29 08:05:32 +00:00
parent 0c123a83f0
commit 4890f3a684
20 changed files with 243 additions and 136 deletions

View file

@ -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