mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
ebce1b4bd6
commit
34276148c4
4 changed files with 23 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue