Sha256: 96cd158bdad20cf6015898ef92af0dc638b91aef738ae6d767388efe610e4e2d

Contents?: true

Size: 211 Bytes

Versions: 4

Compression:

Stored size: 211 Bytes

Contents

# frozen_string_literal: true

module Watir
  class DList < HTMLElement
    def to_hash
      keys = dts.map(&:text)
      values = dds.map(&:text)

      keys.zip(values).to_h
    end
  end # DList
end # Watir

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
watir-7.3.0 lib/watir/elements/dlist.rb
watir-7.2.2 lib/watir/elements/dlist.rb
watir-7.2.1 lib/watir/elements/dlist.rb
watir-7.2.0 lib/watir/elements/dlist.rb