diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-27 01:38:23 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-27 01:38:23 +0000 |
| commit | 9a4d5552e076eb312fe4234f673a09979b687601 (patch) | |
| tree | c934479f4227b736f2a6ab898721bf57fe4f9129 /lib | |
| parent | 9d0425568a94a78b4d40316b8788824c87512be5 (diff) | |
| download | ruby-9a4d5552e076eb312fe4234f673a09979b687601.tar.gz ruby-9a4d5552e076eb312fe4234f673a09979b687601.tar.xz ruby-9a4d5552e076eb312fe4234f673a09979b687601.zip | |
* lib/cgi.rb (CGI::Cookie): remove delagate.
* test/cgi/test_cgi_cookie.rb: added for above.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/cgi.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb index 9900923ed..852891cbd 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. # |
