Sha256: 3d518c52624dd51e852efc98e8949d8d9979fa4944e3b5b2a3069cee5507901a

Contents?: true

Size: 249 Bytes

Versions: 1

Compression:

Stored size: 249 Bytes

Contents

# frozen_string_literal: true

module Normalizy
  module Filters
    module Blacklist
      def self.call(input)
        value = input.gsub('Fuck', 'filtered')

        value = yield(value) if block_given?

        value
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
normalizy-0.1.0 spec/support/filters/blacklist_filter.rb