Class: I18nLanguageSelect::Configuration
- Inherits:
-
Object
- Object
- I18nLanguageSelect::Configuration
- Defined in:
- lib/i18n_language_select.rb
Instance Attribute Summary collapse
-
#available_locales_only ⇒ Object
namespace of locales for language options.
-
#custom ⇒ Object
namespace of locales for language options.
-
#namespace ⇒ Object
namespace of locales for language options.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
31 32 33 34 35 |
# File 'lib/i18n_language_select.rb', line 31 def initialize self.namespace = "i18n_languages" self.custom = false self.available_locales_only = true end |
Instance Attribute Details
#available_locales_only ⇒ Object
namespace of locales for language options
27 28 29 |
# File 'lib/i18n_language_select.rb', line 27 def available_locales_only @available_locales_only end |
#custom ⇒ Object
namespace of locales for language options
27 28 29 |
# File 'lib/i18n_language_select.rb', line 27 def custom @custom end |
#namespace ⇒ Object
namespace of locales for language options
27 28 29 |
# File 'lib/i18n_language_select.rb', line 27 def namespace @namespace end |