class UrlFinder::HTMLReader
Find URLs in HTML strings
Public Instance Methods
urls()
click to toggle source
Returns the found URLs @return [Array<String>] the found URLs
# File lib/url_finder/readers/html_reader.rb, line 11 def urls @urls ||= begin document = Nokogiri::HTML(content) document.css('a').map { |e| e['href'] }.compact end end