Sha256: 67a12f1ebf425ffe0709db8b9132f7b095799768eb8b9e70d14ff089f1690f07
Contents?: true
Size: 386 Bytes
Versions: 5
Compression:
Stored size: 386 Bytes
Contents
require 'wgit' # We pull out all of a Document's links, not just the links to other webpages. Wgit::Document.define_extension( :all_links, '//*/@href | //*/@src', singleton: false, text_content_only: true, ) do |links| if links links = links. map do |link| Wgit::Url.new(link) rescue nil end. compact. uniq end links end
Version data entries
5 entries across 5 versions & 1 rubygems