Class: Langulator::IndividualTranslation
- Inherits:
-
Translation
- Object
- Translation
- Langulator::IndividualTranslation
- Defined in:
- lib/langulator/individual_translation.rb
Instance Attribute Summary
Attributes inherited from Translation
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 Method Details
#language ⇒ Object
4 5 6 |
# File 'lib/langulator/individual_translation.rb', line 4 def language @language ||= filename.gsub(".yml", '').to_sym end |