Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
CGI::Cookie#value=
value=(val)
lib/cgi/cookie.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/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.