lib/trav3/headers.rb in trav3-0.1.1 vs lib/trav3/headers.rb in trav3-0.2.0

- old
+ new

@@ -13,18 +13,22 @@ @heads ||= {} for (key, value) in args @heads[key] = value end + + self end def remove(key) @heads.delete(key) end def +(other) raise ArgumentError, "Invalid type provided." unless other.is_a?(Headers) @heads.merge(other.instance_variable_get(:@heads)) + + self end def to_h @heads end