Sha256: 26cd9d0866d851835461f8a1683434fe6309e5830ab46859c4c83cb7a7001f29

Contents?: true

Size: 317 Bytes

Versions: 1

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

# We extract all the Document's links, not just the links to other webpages.
Wgit::Document.define_extension(
  :all_links,
  '//*/@href | //*/@src', # Any element with a href or src attribute.
  singleton: false,
  text_content_only: true
) do |links|
  links&.map(&:to_url)&.uniq
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
broken_link_finder-0.9.1 lib/broken_link_finder/wgit_extensions.rb