Skip to content

Instantly share code, notes, and snippets.

@buk
Created October 17, 2012 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buk/3905630 to your computer and use it in GitHub Desktop.
Save buk/3905630 to your computer and use it in GitHub Desktop.
create File
require 'rubygems'
require 'builder'
plist = File.open(title + '.plist', 'w') do |f|
end
def generate_plist_file
plist = Builder::XmlMarkup.new( :indent => 2 )
plist.instruct! :xml, :encoding => "UTF-8"
plist.declare! :DOCTYPE, :plist, :PUBLIC, "-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n"
plist.produce do |p|
p.name "Test"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment