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