Class: Moderate::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/moderate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_wordsObject

Returns the value of attribute additional_words.



26
27
28
# File 'lib/moderate.rb', line 26

def additional_words
  @additional_words
end

#error_messageObject

Returns the value of attribute error_message.



26
27
28
# File 'lib/moderate.rb', line 26

def error_message
  @error_message
end

#excluded_wordsObject

Returns the value of attribute excluded_words.



26
27
28
# File 'lib/moderate.rb', line 26

def excluded_words
  @excluded_words
end