# -*- coding: utf-8 -*- # frozen_string_literal: true require 'write_xlsx/package/xml_writer_simple' require 'write_xlsx/utility' module Writexlsx module Package class Theme include Writexlsx::Utility def initialize @writer = nil end def assemble_xml_file return unless @writer write_theme_file @writer.write("\n") @writer.close end # # Set the filehandle only. This class doesn't use a real XML writer class. # def set_xml_writer(filename) fh = open(filename, 'wb') @writer = fh end private # # Write a default theme.xml file. # def write_theme_file theme = %( ) @writer.write(theme) end end end end