Class: Fastlane::Helper::UpdateAndroidStringsHelper
- Inherits:
-
Object
- Object
- Fastlane::Helper::UpdateAndroidStringsHelper
- Defined in:
- lib/fastlane/plugin/update_android_strings/helper/update_android_strings_helper.rb
Class Method Summary collapse
-
.updateXml(nodes, hashes = {}) ⇒ Object
class methods that you define here become available in your action as ‘Helper::UpdateAndroidStringsHelper.your_method`.
Class Method Details
.updateXml(nodes, hashes = {}) ⇒ Object
class methods that you define here become available in your action as ‘Helper::UpdateAndroidStringsHelper.your_method`
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fastlane/plugin/update_android_strings/helper/update_android_strings_helper.rb', line 8 def self.updateXml(nodes, hashes = {}) if hashes and nodes # find key and update text with new value nodes.each do |element| if element.respond_to? :name and hashes.has_key?(element["name"]) element.replace_text(hashes.fetch(element["name"])) end end end end |