summaryrefslogtreecommitdiff
path: root/lib/singleton.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-23 06:31:29 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-23 06:31:29 +0000
commit1de4203c5150088bd795d04e0f6fc4dd75ac00f3 (patch)
tree08da4575f4d1164918e6a74e503d5de9a9b64b51 /lib/singleton.rb
parentc6c5771e50ecc68e6e7f20fa051a7d1b9ba8f96a (diff)
* lib/cgi.rb (CGI::QueryExtension::[]): always return Value
object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/singleton.rb')
-rw-r--r--lib/singleton.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/singleton.rb b/lib/singleton.rb
index 147b041..9391594 100644
--- a/lib/singleton.rb
+++ b/lib/singleton.rb
@@ -142,7 +142,7 @@ module Singleton
@__instance__ = new
ensure
if @__instance__
- def self.instance() @__instance__ end
+ define_method(:instance) {@__instance__}
else
@__instance__ = nil # failed instance creation
end