class CGI::Cookie

def path=(str)

Set path for which this cookie applies
def path=(str)
  if str and !PATH_VALUE_RE.match?(str)
    raise ArgumentError, "invalid path: #{str.dump}"
  end
  @path = str
end