Sha256: 03c14457eedf444f484d39e4524a528d9e186764f504ba31ff186c616b1291e6

Contents?: true

Size: 359 Bytes

Versions: 9

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

class HTMLPipeline
  class ConvertFilter < Filter
    attr_reader :text, :html

    def initialize(context: {}, result: {})
      super(context: context, result: result)
    end

    class << self
      def call(text, context: {}, result: {})
        new(context: context, result: result).call(text)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
html-pipeline-3.2.0 lib/html_pipeline/convert_filter.rb
html-pipeline-3.1.1 lib/html_pipeline/convert_filter.rb
html-pipeline-3.1.0 lib/html_pipeline/convert_filter.rb
html-pipeline-3.0.3 lib/html_pipeline/convert_filter.rb
html-pipeline-3.0.2 lib/html_pipeline/convert_filter.rb
html-pipeline-3.0.1 lib/html_pipeline/convert_filter.rb
html-pipeline-3.0.0 lib/html_pipeline/convert_filter.rb
html-pipeline-3.0.0.pre6 lib/html_pipeline/convert_filter.rb
html-pipeline-3.0.0.pre5 lib/html_pipeline/convert_filter.rb