Sha256: 0fa177515fa916d421d4c2af5221d30d59c24ff92e2c77ac0502286cc0503893
Contents?: true
Size: 558 Bytes
Versions: 1
Compression:
Stored size: 558 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
obscenity-1.0.0 | lib/obscenity.rb |