class Pod::Specification::Linter
Public Instance Methods
write_to_file(property, value)
click to toggle source
# File lib/pod-pipeline/extension/linter-ppl.rb, line 4 def write_to_file(property, value) puts "[写入 #{property} = #{value}]" file_content = File.read file file_content.gsub!(/(.*.#{property}.*=.*)('.*')/,"\\1'#{value}'") File.open(file, "w") { |f| f.puts file_content } end