Sha256: 9cb7d697095091c31bbe2270110d02821a26ebf060665e8c59076f118f97d0af

Contents?: true

Size: 383 Bytes

Versions: 6

Compression:

Stored size: 383 Bytes

Contents

require "amakanize/filters/base_filter"

module Amakanize
  module Filters
    class BookPositionClearingFilter < ::Amakanize::Filters::BaseFilter
      # @note Override
      def call(context:, output:)
        unless context[:position_detected]
          output = ""
        end
        {
          context: context,
          output: output,
        }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
amakanize-0.7.0 lib/amakanize/filters/book_position_clearing_filter.rb
amakanize-0.6.5 lib/amakanize/filters/book_position_clearing_filter.rb
amakanize-0.6.4 lib/amakanize/filters/book_position_clearing_filter.rb
amakanize-0.6.3 lib/amakanize/filters/book_position_clearing_filter.rb
amakanize-0.6.2 lib/amakanize/filters/book_position_clearing_filter.rb
amakanize-0.6.1 lib/amakanize/filters/book_position_clearing_filter.rb