summaryrefslogtreecommitdiff
path: root/lib/cgi.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-27 01:38:23 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-27 01:38:23 +0000
commit19b25eb670b2121b09eb0d89df8350286e8856ff (patch)
treec934479f4227b736f2a6ab898721bf57fe4f9129 /lib/cgi.rb
parent1366802a1f24065c9d02f47f59d9a0519f9cd516 (diff)
* lib/cgi.rb (CGI::Cookie): remove delagate.
* test/cgi/test_cgi_cookie.rb: added for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi.rb')
-rw-r--r--lib/cgi.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb
index 9900923ed8..852891cbdb 100644
--- a/lib/cgi.rb
+++ b/lib/cgi.rb
@@ -749,9 +749,6 @@ class CGI
stdoutput.print(*options)
end
- require "delegate"
-
- # Class representing an HTTP cookie.
#
# In addition to its specific fields and methods, a Cookie instance
# is a delegator to the array of its values.
@@ -784,7 +781,7 @@ class CGI
# cookie1.domain = 'domain'
# cookie1.expires = Time.now + 30
# cookie1.secure = true
- class Cookie < DelegateClass(Array)
+ class Cookie < Array
# Create a new CGI::Cookie object.
#