require 'obscenity/error' require 'obscenity/config' require 'obscenity/base' require 'obscenity/version' module Obscenity extend self attr_accessor :config def configure(&block) @config = Config.new(&block) end def config @config ||= Config.new end def profane?(word) Obscenity::Base.profane?(word) end def sanitize(text) Obscenity::Base.sanitize(text) end def replacement(chars) Obscenity::Base.replacement(chars) end def offensive(text) Obscenity::Base.offensive(text) end end