module Cleaners::RemoveNonPrintable

Remove all not printable characters

Constants

NOT_PRINTABLE

Public Class Methods

call(string) click to toggle source
# File lib/data_cleansing/cleaners.rb, line 49
def self.call(string)
  return string unless string.is_a?(String)

  string.gsub!(NOT_PRINTABLE, '') || string
end