Sha256: 17efd1e7b0ee933f0649a6a8f299aa2c5ca4a84cef2720acf0d5ace97aa20b22

Contents?: true

Size: 339 Bytes

Versions: 5

Compression:

Stored size: 339 Bytes

Contents

module Amakanize
  module Filters
    class SpaceDeletionFilter < BaseFilter
      # @note Override
      # @param output [String] e.g. `"渡 航"`
      # @return [Hash] e.g. `"渡航"`
      def call(context:, output:)
        {
          context: context,
          output: output.gsub(/\s+/, ""),
        }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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