Class: Moderate::Configuration
- Inherits:
-
Object
- Object
- Moderate::Configuration
- Defined in:
- lib/moderate.rb
Instance Attribute Summary collapse
-
#additional_words ⇒ Object
Returns the value of attribute additional_words.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#excluded_words ⇒ Object
Returns the value of attribute excluded_words.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
28 29 30 31 32 |
# File 'lib/moderate.rb', line 28 def initialize @error_message = "contains moderatable content (bad words)" @additional_words = [] @excluded_words = [] end |
Instance Attribute Details
#additional_words ⇒ Object
Returns the value of attribute additional_words.
26 27 28 |
# File 'lib/moderate.rb', line 26 def additional_words @additional_words end |
#error_message ⇒ Object
Returns the value of attribute error_message.
26 27 28 |
# File 'lib/moderate.rb', line 26 def @error_message end |
#excluded_words ⇒ Object
Returns the value of attribute excluded_words.
26 27 28 |
# File 'lib/moderate.rb', line 26 def excluded_words @excluded_words end |