summaryrefslogtreecommitdiff
path: root/lib/cgi/cookie.rb
diff options
context:
space:
mode:
authorxibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-03 02:38:32 +0000
committerxibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-03 02:38:32 +0000
commit7a8a7864b1d83e6d17a42f4c015b81b62a02fbe2 (patch)
tree3b73577c93e7f34fde2b3c8a6f0b78eb3ea712e9 /lib/cgi/cookie.rb
parent94b120fe7558f1b0dac644e096d8addf0e7f720a (diff)
* lib/cgi/cookie.rb (inspect): add inspect for debug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi/cookie.rb')
-rw-r--r--lib/cgi/cookie.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/cgi/cookie.rb b/lib/cgi/cookie.rb
index 856526fa925..3ec884dffb2 100644
--- a/lib/cgi/cookie.rb
+++ b/lib/cgi/cookie.rb
@@ -159,6 +159,11 @@ class CGI
cookies
end
+ # A summary of cookie string.
+ def inspect
+ "#<CGI::Cookie: #{self.to_s.inspect}>"
+ end
+
end # class Cookie
end