Class: I18nPoTools::Formats::IosFormat

Inherits:
BaseFormat
  • Object
show all
Defined in:
lib/i18n_po_tools/formats/ios_format.rb

Instance Attribute Summary

Attributes inherited from BaseFormat

#options

Instance Method Summary collapse

Methods inherited from BaseFormat

#banner_msg, #file_encoding, #read_file, #read_with_options, #write_file, #write_with_options

Instance Method Details

#read(input_filename) ⇒ Object



7
8
9
10
# File 'lib/i18n_po_tools/formats/ios_format.rb', line 7

def read(input_filename)
  content = read_file(input_filename)
  IosStrings.strings_to_hash(content)
end

#write(output_filename, data) ⇒ Object



12
13
14
15
# File 'lib/i18n_po_tools/formats/ios_format.rb', line 12

def write(output_filename, data)
  content = IosStrings.hash_to_strings(data,banner_msg)
  write_file(output_filename, content)
end