Sha256: 6a7c389c43be82381b5d382f8e655a2f3c7b525060d252c1f05a008edef4649b

Contents?: true

Size: 269 Bytes

Versions: 1

Compression:

Stored size: 269 Bytes

Contents

class PageDownloader
  class Filters
    attr_reader :filters

    def initialize(filters = [])
      @filters = filters
    end

    def filter(content)
      filters.each do |filter|
        content = filter.filter(content)
      end

      content
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
page_downloader-1.0 lib/page_downloader/filters.rb