lib/trav3/headers.rb in trav3-0.2.5 vs lib/trav3/headers.rb in trav3-0.3.0

- old
+ new

@@ -5,14 +5,14 @@ module Trav3 class Headers extend Forwardable def_delegators :@heads, :each_pair - def initialize(**args) - build(**args) + def initialize(args = {}) + build(args) end - def build(**args) + def build(args = {}) @heads ||= {} args.each do |(key, value)| @heads[key] = value end