Class: Idioma::Configuration
- Inherits:
-
Object
- Object
- Idioma::Configuration
- Defined in:
- lib/idioma.rb
Instance Attribute Summary collapse
-
#default_locale ⇒ Object
Returns the value of attribute default_locale.
-
#ignore_keys ⇒ Object
Returns the value of attribute ignore_keys.
- #locales ⇒ Object
-
#redis_backend ⇒ Object
Returns the value of attribute redis_backend.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 |
# File 'lib/idioma.rb', line 9 def initialize self.default_locale = :en self.locales = [self.default_locale] self.ignore_keys = ["ransack", "simple_form"] end |
Instance Attribute Details
#default_locale ⇒ Object
Returns the value of attribute default_locale.
7 8 9 |
# File 'lib/idioma.rb', line 7 def default_locale @default_locale end |
#ignore_keys ⇒ Object
Returns the value of attribute ignore_keys.
7 8 9 |
# File 'lib/idioma.rb', line 7 def ignore_keys @ignore_keys end |
#locales ⇒ Object
15 16 17 |
# File 'lib/idioma.rb', line 15 def locales proc_or_value(@locales) end |
#redis_backend ⇒ Object
Returns the value of attribute redis_backend.
7 8 9 |
# File 'lib/idioma.rb', line 7 def redis_backend @redis_backend end |