class Terrestrial::Cli::Parser::BaseParser

Public Class Methods

find_api_calls(file) click to toggle source

Interface for finding locations in files where the Terrestrial API will be accessing strings

file - path to source file

Expected to return an array of
Bootstrapper::NewStringEntry
objects
# File lib/terrestrial/cli/parser/base_parser.rb, line 14
def self.find_api_calls(file)
  raise "Not implemented"
end
find_nslocalizedstrings(file) click to toggle source
# File lib/terrestrial/cli/parser/base_parser.rb, line 28
def self.find_nslocalizedstrings(file)
  raise "Not implemented"
end
find_string(file) click to toggle source

Interface for finding strings in a source file

file - path to source file

Expected to return an array of
hashes TODO: make return an object
# File lib/terrestrial/cli/parser/base_parser.rb, line 24
def self.find_string(file)
  raise "Not implemented"
end
scan_lines(path) { |line, index| ... } click to toggle source
# File lib/terrestrial/cli/parser/base_parser.rb, line 34
def self.scan_lines(path)
  File.readlines(file).each_with_index do |line, index|
    yield line, index
  end
end