class String

Public Instance Methods

purify() click to toggle source
# File lib/purify/string.rb, line 2
def purify
      string_array = self.split(' ')
      string_array.map! do |element|
        if Purify::show.include? element
          Purify::asterisk(element.length)
        else
           element
        end
      end
      string_array.join(" ")
end