Class: Transilator::Configuration
- Inherits:
-
Object
- Object
- Transilator::Configuration
- Defined in:
- lib/transilator.rb
Instance Attribute Summary collapse
-
#locale_fallbacks ⇒ Object
Returns the value of attribute locale_fallbacks.
Instance Method Summary collapse
-
#get_fallbacks_for_locale(locale) ⇒ Object
returns an array with fallbacks for the given locale.
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
23 24 25 |
# File 'lib/transilator.rb', line 23 def initialize @locale_fallbacks = {} end |
Instance Attribute Details
#locale_fallbacks ⇒ Object
Returns the value of attribute locale_fallbacks.
21 22 23 |
# File 'lib/transilator.rb', line 21 def locale_fallbacks @locale_fallbacks end |
Instance Method Details
#get_fallbacks_for_locale(locale) ⇒ Object
returns an array with fallbacks for the given locale
28 29 30 |
# File 'lib/transilator.rb', line 28 def get_fallbacks_for_locale(locale) locale_fallbacks[locale] || [] end |