Sha256: 88015a83bf64ceee232a7a17cdff5590af8ae56ab63e2799aeab16f56acc4e5e

Contents?: true

Size: 242 Bytes

Versions: 5

Compression:

Stored size: 242 Bytes

Contents

# Marks all blocks as content.

module Boilerpipe::Filters
  class MarkEverythingContentFilter
    def self.process(doc)
      doc.text_blocks.each do |tb|
        tb.content = true if tb.is_not_content?
      end
      doc
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
boilerpipe-ruby-0.5.0 lib/boilerpipe/filters/mark_everything_content_filter.rb
boilerpipe-ruby-0.4.4 lib/boilerpipe/filters/mark_everything_content_filter.rb
boilerpipe-ruby-0.4.3 lib/boilerpipe/filters/mark_everything_content_filter.rb
boilerpipe-ruby-0.4.2 lib/boilerpipe/filters/mark_everything_content_filter.rb
boilerpipe-ruby-0.4.1 lib/boilerpipe/filters/mark_everything_content_filter.rb