module Obscenity

Constants

VERSION

Attributes

config[RW]

Public Instance Methods

configure(&block) click to toggle source
# File lib/obscenity.rb, line 14
def configure(&block)
  @config = Config.new(&block)
end
offensive(text) click to toggle source
# File lib/obscenity.rb, line 34
def offensive(text)
  Obscenity::Base.offensive(text)
end
profane?(word) click to toggle source
# File lib/obscenity.rb, line 22
def profane?(word)
  Obscenity::Base.profane?(word)
end
replacement(chars) click to toggle source
# File lib/obscenity.rb, line 30
def replacement(chars)
  Obscenity::Base.replacement(chars)
end
sanitize(text) click to toggle source
# File lib/obscenity.rb, line 26
def sanitize(text)
  Obscenity::Base.sanitize(text)
end