Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
CGI::Cookie#value=
(::String val) -> ::String
(::Array[::String] val) -> ::Array[::String]
value=(val)
lib/cgi/cookie.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/cgi/cookie.rb, line 146
def value=(val)
replace(Array(val))
end
Replaces the value of this cookie with a new value or list of values.