lib/trav3/headers.rb in trav3-0.4.1 vs lib/trav3/headers.rb in trav3-0.5.0

- old
+ new

@@ -1,11 +1,19 @@ # frozen_string_literal: true require 'forwardable' module Trav3 + # A header builder class for outgoing requests class Headers extend Forwardable + # @!macro [attach] def_delegators + # @!method each_pair + # Forwards to $1. + # @see Hash#each_pair + # @!method fetch + # Forwards to $1. + # @see Hash#fetch def_delegators :@heads, :each_pair, :fetch def initialize(args = {}) build(args) end