Method: Xcmake::PlistBuilder#initialize
- Defined in:
- lib/xcmake/source_builder/plist_builder.rb
#initialize(template_path = nil) ⇒ PlistBuilder
Returns a new instance of PlistBuilder.
5 6 7 8 9 |
# File 'lib/xcmake/source_builder/plist_builder.rb', line 5 def initialize(template_path=nil) template_path = template_path || File.("../../../templates/default.plist.erb", __dir__) log_error!("Template not found: #{template_path}") unless File.exist?(template_path) @template = File.read(template_path) end |