Class: I18nPoTools::Formats::Factory
- Inherits:
-
Object
- Object
- I18nPoTools::Formats::Factory
- Defined in:
- lib/i18n_po_tools/formats.rb
Class Method Summary collapse
Class Method Details
.get(format) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/i18n_po_tools/formats.rb', line 14 def self.get(format) case format when :rails_yaml RailsYamlFormat.new when :flat_yaml BasicFlatYamlFormat.new when :po PoFormat.new when :pot PoFormat.new(:pot => true) when :ios IosFormat.new when :android AndroidFormat.new when :properties PropertiesFormat.new when :csv CsvFormat.new end end |