class Profanity::Base
Public Class Methods
blacklist()
click to toggle source
# File lib/profanity/base.rb, line 5 def blacklist @blacklist = Profanity::Config::BLACKLIST end
profane?(text)
click to toggle source
# File lib/profanity/base.rb, line 9 def profane?(text) profane = false blacklist.each do |word| if text.include? word profane = true; break end end profane end