Class: IosStringsUpdater

Inherits:
StringsUpdater show all
Defined in:
lib/ios_strings_updater.rb

Instance Method Summary collapse

Methods inherited from StringsUpdater

#end_document, #get_document_id, #push_project, #read_settings, #working_dictionary

Instance Method Details

#add_comment(comment) ⇒ Object



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

def add_comment(comment)
  @document += "\n// #{comment}\n\n"
end

#add_translation(key, to) ⇒ Object



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

def add_translation(key, to)
  @document += "\"#{key}\" = \"#{to};\n"
end

#begin_documentObject



2
3
4
# File 'lib/ios_strings_updater.rb', line 2

def begin_document
  @document = "\nFile generated by Strings Updater v0.1\nMore info: https://github.com/artur-gurgul/strings_updater\n\n\n"
end