Sha256: 1c9a9cc7c5f340923035356fd8a107666bc4a76020c2156b0134a4a3afc242f7

Contents?: true

Size: 206 Bytes

Versions: 7

Compression:

Stored size: 206 Bytes

Contents

module HeaderHelpers
  
  def table_to_headers(table)
    table.hashes.inject({}) do |hdr, pairs|
      hdr[pairs['header-name']] = pairs['header-value']
      hdr
    end
  end
  
end

World(HeaderHelpers)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stomper-2.0.6 features/support/header_helpers.rb
stomper-2.0.5 features/support/header_helpers.rb
stomper-2.0.4 features/support/header_helpers.rb
stomper-2.0.3 features/support/header_helpers.rb
stomper-2.0.2 features/support/header_helpers.rb
stomper-2.0.1 features/support/header_helpers.rb
stomper-2.0.0 features/support/header_helpers.rb