Sha256: 24d8b967504df7ad0643a9b5efb49dd24c7c793e9040493a853e89a75a3e9ac3

Contents?: true

Size: 403 Bytes

Versions: 6

Compression:

Stored size: 403 Bytes

Contents

require "amakanize/filters/base_filter"

module Amakanize
  module Filters
    class StripFilter < ::Amakanize::Filters::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

6 entries across 6 versions & 1 rubygems

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