summaryrefslogtreecommitdiff
path: root/lib/cgi/cookie.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-18 21:07:13 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-18 21:07:13 +0000
commit34276148c4450faa77bb298cfbe005f7c263f802 (patch)
tree0eb6c327c7c6e98a36a62105929b63a37bd4f7ab /lib/cgi/cookie.rb
parentebce1b4bd61c39030d93c01e7d080b8500be17ff (diff)
* lib/cgi/util.rb: Improve documentation. Patch by Clinton Nixon.
[Ruby 1.9 - Bug #4733] * lib/cgi/core.rb: ditto * lib/cgi/cookie.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi/cookie.rb')
-rw-r--r--lib/cgi/cookie.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/cgi/cookie.rb b/lib/cgi/cookie.rb
index f05f83e0c9f..c2526931d57 100644
--- a/lib/cgi/cookie.rb
+++ b/lib/cgi/cookie.rb
@@ -104,10 +104,12 @@ class CGI
# True if this cookie is secure; false otherwise
attr_reader("secure")
+ # Returns the value or list of values for this cookie.
def value
self
end
+ # Replaces the value of this cookie with a new value or list of values.
def value=(val)
replace(Array(val))
end