Method: Html2rss::AutoSource::Scraper::SemanticHtml::Image.call

Defined in:
lib/html2rss/auto_source/scraper/semantic_html/image.rb

.call(article_tag, url:) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/html2rss/auto_source/scraper/semantic_html/image.rb', line 10

def self.call(, url:)
  img_src = from_source() ||
            from_img() ||
            from_style()

  Utils.build_absolute_url_from_relative(img_src, url) if img_src
end