mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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:
parent
0c123a83f0
commit
4890f3a684
20 changed files with 243 additions and 136 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue