aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cgi/cookie.rb
diff options
context:
space:
mode:
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 f05f83e0c9..c2526931d5 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