Sha256: 981fb39f237d9b4de3f3087662724d454ca60d7a01893e14b35c35ec26fa698f
Contents?: true
Size: 402 Bytes
Versions: 6
Compression:
Stored size: 402 Bytes
Contents
require "amakanize/filters/base_filter" module Amakanize module Filters class SpaceDeletionFilter < ::Amakanize::Filters::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
6 entries across 6 versions & 1 rubygems