Class: Langulator::AggregateTranslation

Inherits:
Translation show all
Defined in:
lib/langulator/aggregate_translation.rb

Instance Attribute Summary collapse

Attributes inherited from Translation

#location

Instance Method Summary collapse

Methods inherited from Translation

#filename, #initialize, #path, #read, #translations, #write

Constructor Details

This class inherits a constructor from Langulator::Translation

Instance Attribute Details

#individual_translationsObject



14
15
16
# File 'lib/langulator/aggregate_translation.rb', line 14

def individual_translations
  @individual_translations ||= extract_individual_translations
end

Instance Method Details

#decompileObject



10
11
12
# File 'lib/langulator/aggregate_translation.rb', line 10

def decompile
  individual_translations.each(&:write)
end

#languagesObject



6
7
8
# File 'lib/langulator/aggregate_translation.rb', line 6

def languages
  @languages ||= detect_languages
end