Module: Obscenity
- Extended by:
- Obscenity
- Included in:
- Obscenity
- Defined in:
- lib/obscenity.rb,
lib/obscenity/base.rb,
lib/obscenity/error.rb,
lib/obscenity/config.rb,
lib/obscenity/version.rb
Defined Under Namespace
Classes: Base, Config, EmptyContentList, Error, UnkownContent, UnkownContentFile
Constant Summary
collapse
- VERSION =
'1.0.1'
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
12
13
14
|
# File 'lib/obscenity.rb', line 12
def config
@config
end
|
Instance Method Details
14
15
16
|
# File 'lib/obscenity.rb', line 14
def configure(&block)
@config = Config.new(&block)
end
|
#offensive(text) ⇒ Object
#profane?(word) ⇒ Boolean
#replacement(chars) ⇒ Object