End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
CGI::Cookie#name=
name=(str)
lib/cgi/cookie.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/cgi/cookie.rb, line 106
def name=(str)
if str and !TOKEN_RE.match?(str)
raise ArgumentError, "invalid name: #{str.dump}"
end
@name = str
end
Set name of this cookie