Method: Html2rss::AutoSource::Reducer.call
- Defined in:
- lib/html2rss/auto_source/reducer.rb
.call(articles, **_options) ⇒ Object
11 12 13 14 15 |
# File 'lib/html2rss/auto_source/reducer.rb', line 11 def call(articles, **) Log.debug "Reducer: inited with #{articles.size} articles" reduce_by_keeping_longest_values(articles, keep: [:scraper]) { |article| article.url&.path } end |