require 'zip/filesystem' require 'fileutils' module Powerpoint class Powerpoint::ContentType def initialize extract_path, sllide_number xml = '' path = "#{extract_path}/[Content_Types].xml" template = File.read path template.gsub!('', xml) File.open(path, 'w'){ |f| f << template } end end end