Class: StaticGenderizer::Configuration
- Inherits:
-
Object
- Object
- StaticGenderizer::Configuration
- Defined in:
- lib/static_genderizer/configuration.rb
Overview
Holds configuration for the gem.
Instance Attribute Summary collapse
-
#case_sensitive ⇒ Object
Returns the value of attribute case_sensitive.
-
#data_path ⇒ Object
Returns the value of attribute data_path.
-
#languages ⇒ Object
Returns the value of attribute languages.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 15 |
# File 'lib/static_genderizer/configuration.rb', line 8 def initialize # folder where CSVs will be looked up (must be set by user typically) @data_path = File.join(Dir.pwd, "data") # languages to load as array of symbols/strings; default empty (no default language) @languages = [] # token matching case-sensitivity @case_sensitive = false end |
Instance Attribute Details
#case_sensitive ⇒ Object
Returns the value of attribute case_sensitive.
6 7 8 |
# File 'lib/static_genderizer/configuration.rb', line 6 def case_sensitive @case_sensitive end |
#data_path ⇒ Object
Returns the value of attribute data_path.
6 7 8 |
# File 'lib/static_genderizer/configuration.rb', line 6 def data_path @data_path end |
#languages ⇒ Object
Returns the value of attribute languages.
6 7 8 |
# File 'lib/static_genderizer/configuration.rb', line 6 def languages @languages end |