mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
c6c5771e50
commit
1de4203c51
4 changed files with 13 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue