Class: TidyI18n::DictionaryConverter

Inherits:
Object
  • Object
show all
Defined in:
lib/tidy_i18n/dictionary_converter.rb

Defined Under Namespace

Classes: InvalidTranslationValue

Instance Method Summary collapse

Constructor Details

#initialize(dictionary, locale) ⇒ DictionaryConverter

Returns a new instance of DictionaryConverter.



10
11
12
13
# File 'lib/tidy_i18n/dictionary_converter.rb', line 10

def initialize(dictionary, locale)
  self.dictionary = dictionary
  self.locale = locale
end

Instance Method Details

#converted_dictionaryObject



15
16
17
# File 'lib/tidy_i18n/dictionary_converter.rb', line 15

def converted_dictionary
  convert_dictionary(dictionary, [])
end