class ProfanityFilterEngine::Component

Public Instance Methods

profane?(text) click to toggle source
# File lib/profanity-filter/engines/component.rb, line 5
def profane?(text)
  raise NotImplementedError
end
profane_words(text) click to toggle source
# File lib/profanity-filter/engines/component.rb, line 9
def profane_words(text)
  raise NotImplementedError
end
profanity_count(text) click to toggle source
# File lib/profanity-filter/engines/component.rb, line 13
def profanity_count(text)
  profane_words(text).size
end