Class: Html2rss::HtmlExtractor::EnclosureExtractor
- Inherits:
-
Object
- Object
- Html2rss::HtmlExtractor::EnclosureExtractor
- Defined in:
- lib/html2rss/html_extractor/enclosure_extractor.rb
Overview
Extracts enclosures from HTML tags using various strategies.
Class Method Summary collapse
Class Method Details
.call(article_tag, base_url) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/html2rss/html_extractor/enclosure_extractor.rb', line 8 def self.call(article_tag, base_url) [ Extractors::Image, Extractors::Media, Extractors::Pdf, Extractors::Iframe, Extractors::Archive ].flat_map { |strategy| strategy.call(article_tag, base_url:) } end |