Class: Terrestrial::Cli::UnityParser
- Inherits:
-
Object
- Object
- Terrestrial::Cli::UnityParser
- Defined in:
- lib/terrestrial/cli/unity_parser.rb
Class Method Summary collapse
Class Method Details
.parse_file(file) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/terrestrial/cli/unity_parser.rb', line 5 def self.parse_file(file) # Same file format as Android, so we delegate directly. result = AndroidXmlParser.parse_file(file) # Map over the results to change the types # to be unity instead of the Android default. result.map do |entry| entry["type"] = "unity" entry end end |