class Protocol::HTTP::Cookie
def self.parse_directives(strings)
@parameter strings [Array(String)] The list of strings to parse.
Parse a list of strings into a hash of directives.
def self.parse_directives(strings) strings.collect do |string| key, value = string.split("=", 2) [key, value || true] end.to_h end