Class: Obscenity::Config
- Inherits:
-
Object
- Object
- Obscenity::Config
- Defined in:
- lib/obscenity/config.rb
Instance Attribute Summary collapse
-
#blacklist ⇒ Object
Returns the value of attribute blacklist.
-
#replacement ⇒ Object
Returns the value of attribute replacement.
-
#whitelist ⇒ Object
Returns the value of attribute whitelist.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
9 10 11 12 13 14 15 |
# File 'lib/obscenity/config.rb', line 9 def initialize puts "DEBUG: Initializing Config with DEFAULT_BLACKLIST: #{DEFAULT_BLACKLIST.inspect}" @blacklist ||= DEFAULT_BLACKLIST.dup @whitelist ||= DEFAULT_WHITELIST.dup @replacement ||= :stars end |
Instance Attribute Details
#blacklist ⇒ Object
Returns the value of attribute blacklist.
7 8 9 |
# File 'lib/obscenity/config.rb', line 7 def blacklist @blacklist end |
#replacement ⇒ Object
Returns the value of attribute replacement.
7 8 9 |
# File 'lib/obscenity/config.rb', line 7 def replacement @replacement end |
#whitelist ⇒ Object
Returns the value of attribute whitelist.
7 8 9 |
# File 'lib/obscenity/config.rb', line 7 def whitelist @whitelist end |