Sha256: 94c581e3fad9a770731ebdd0f57dba4689f1bf19daa4f66dd5720459c5d0bcd0

Contents?: true

Size: 340 Bytes

Versions: 5

Compression:

Stored size: 340 Bytes

Contents

module Amakanize
  module Filters
    class StripFilter < BaseFilter
      # @note Override
      # @param output [String] e.g. `"  ハノカゲ  "`
      # @return [Hash] e.g. `"ハノカゲ"`
      def call(context:, output:)
        {
          context: context,
          output: output.strip,
        }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
amakanize-0.6.0 lib/amakanize/filters/strip_filter.rb
amakanize-0.5.3 lib/amakanize/filters/strip_filter.rb
amakanize-0.5.2 lib/amakanize/filters/strip_filter.rb
amakanize-0.5.1 lib/amakanize/filters/strip_filter.rb
amakanize-0.5.0 lib/amakanize/filters/strip_filter.rb