Sha256: 5e93eb40b6dd06fe68b4f68afc14f9ccc35a35d6ffc92554fbdab2e6b96e7c34
Contents?: true
Size: 405 Bytes
Versions: 1
Compression:
Stored size: 405 Bytes
Contents
require 'http_headers/utils/list' module HttpHeaders module Utils module Single module_function def parse(value, entry_klazz:) List.new(value, entry_klazz: entry_klazz).last end def new(*args) parse(*args) end def to_header(single) List.stringify_entry(single) end alias new parse end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
http_headers-utils-0.2.0 | lib/http_headers/utils/single.rb |