Class: I18nUno::Arbiter
- Inherits:
-
Object
- Object
- I18nUno::Arbiter
- Defined in:
- lib/i18n_uno/arbiter.rb
Instance Attribute Summary collapse
-
#source_of_truth_tree ⇒ Object
readonly
Returns the value of attribute source_of_truth_tree.
-
#target_locales ⇒ Object
readonly
Returns the value of attribute target_locales.
-
#translators ⇒ Object
readonly
Returns the value of attribute translators.
-
#trees ⇒ Object
readonly
Returns the value of attribute trees.
Instance Method Summary collapse
-
#initialize ⇒ Arbiter
constructor
A new instance of Arbiter.
- #translate ⇒ Object
Constructor Details
#initialize ⇒ Arbiter
Returns a new instance of Arbiter.
7 8 9 10 11 12 |
# File 'lib/i18n_uno/arbiter.rb', line 7 def initialize @translators = [] @trees = {} setup_configurations end |
Instance Attribute Details
#source_of_truth_tree ⇒ Object (readonly)
Returns the value of attribute source_of_truth_tree.
5 6 7 |
# File 'lib/i18n_uno/arbiter.rb', line 5 def source_of_truth_tree @source_of_truth_tree end |
#target_locales ⇒ Object (readonly)
Returns the value of attribute target_locales.
5 6 7 |
# File 'lib/i18n_uno/arbiter.rb', line 5 def target_locales @target_locales end |
#translators ⇒ Object (readonly)
Returns the value of attribute translators.
5 6 7 |
# File 'lib/i18n_uno/arbiter.rb', line 5 def translators @translators end |
#trees ⇒ Object (readonly)
Returns the value of attribute trees.
5 6 7 |
# File 'lib/i18n_uno/arbiter.rb', line 5 def trees @trees end |
Instance Method Details
#translate ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/i18n_uno/arbiter.rb', line 14 def translate print_translations_info target_locales.each do |target_locale| collect_locale_changes(target_locale) process_changes(target_locale) end end |