summaryrefslogtreecommitdiffstats
path: root/lib/singleton.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-11-17 07:30:37 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-11-17 07:30:37 +0000
commit0d2a06406ebd4f99046373e815473ed99046f7fe (patch)
treec25927a4f286e4ed5f3c7637076332e99287b089 /lib/singleton.rb
parent2ee41de2e5c334d14f8896952e9d5f4ded94fd59 (diff)
downloadruby-0d2a06406ebd4f99046373e815473ed99046f7fe.tar.gz
ruby-0d2a06406ebd4f99046373e815473ed99046f7fe.tar.xz
ruby-0d2a06406ebd4f99046373e815473ed99046f7fe.zip
19991117
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/singleton.rb')
-rw-r--r--lib/singleton.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/singleton.rb b/lib/singleton.rb
index 8167a01aa..4aea574e7 100644
--- a/lib/singleton.rb
+++ b/lib/singleton.rb
@@ -14,6 +14,7 @@ module Singleton
def Singleton.append_features(klass)
klass.private_class_method(:new)
klass.instance_eval %{
+ @__instance__ = nil
def instance
unless @__instance__
@__instance__ = new