Sha256: c05d3257821a7dba13a06bf50baf46b0e43e9168e23ce79e30fa492f3b478156
Contents?: true
Size: 621 Bytes
Versions: 2
Compression:
Stored size: 621 Bytes
Contents
require 'obscenity/error' require 'obscenity/config' require 'obscenity/base' require 'obscenity/version' if defined?(::RSpec) require 'obscenity/rspec_matcher' end 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
obscenity-1.0.2 | lib/obscenity.rb |
obscenity-1.0.1 | lib/obscenity.rb |