Sha256: 759b8b6a350f6f39bafe9fe54505059e1a5dd8d26ef483fef713a9fbd5a4d589

Contents?: true

Size: 197 Bytes

Versions: 60

Compression:

Stored size: 197 Bytes

Contents

module Watir
  class DList < HTMLElement

    def to_hash
      keys = dts.map { |e| e.text }
      values = dds.map { |e| e.text }

      Hash[keys.zip(values)]
    end

  end # DList
end # Watir

Version data entries

60 entries across 60 versions & 2 rubygems

Version Path
watir-6.13.0 lib/watir/elements/dlist.rb
watir-6.12.0 lib/watir/elements/dlist.rb
watir-6.11.0 lib/watir/elements/dlist.rb
watir-6.11.0.beta2 lib/watir/elements/dlist.rb
watir-6.11.0.beta1 lib/watir/elements/dlist.rb
watir-6.10.3 lib/watir/elements/dlist.rb
watir-6.10.2 lib/watir/elements/dlist.rb
watir-6.10.0 lib/watir/elements/dlist.rb
watir-6.9.1 lib/watir/elements/dlist.rb
watir-6.9.0 lib/watir/elements/dlist.rb
watir-6.8.4 lib/watir/elements/dlist.rb
watir-6.8.3 lib/watir/elements/dlist.rb
watir-6.8.2 lib/watir/elements/dlist.rb
watir-6.8.1 lib/watir/elements/dlist.rb
watir-6.8.0 lib/watir/elements/dlist.rb
watir-6.7.3 lib/watir/elements/dlist.rb
watir-6.7.2 lib/watir/elements/dlist.rb
watir-6.7.1 lib/watir/elements/dlist.rb
watir-6.7.0 lib/watir/elements/dlist.rb
watir-6.6.3 lib/watir/elements/dlist.rb