module HttpHeaders::Utils::Single

Public Instance Methods

new(*args) click to toggle source
# File lib/http_headers/utils/single.rb, line 12
def new(*args)
  parse(*args)
end
parse(value, entry_klazz:) click to toggle source
# File lib/http_headers/utils/single.rb, line 8
def parse(value, entry_klazz:)
  List.new(value, entry_klazz: entry_klazz).last
end
Also aliased as: new
to_header(single) click to toggle source
# File lib/http_headers/utils/single.rb, line 16
def to_header(single)
  List.stringify_entry(single)
end