From 19b25eb670b2121b09eb0d89df8350286e8856ff Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 27 Aug 2008 01:38:23 +0000 Subject: * 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 --- lib/cgi.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/cgi.rb') 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. # -- cgit v1.2.3