# encoding: UTF-8 module Axlsx # The core object for the package. # @note Packages manage their own core object. # @see Package#core class Core # Creates a new Core object. # @option options [String] creator def initialize(options={}) @creator = options[:creator] || 'axlsx' end # The author of the document. By default this is 'axlsx' # @return [String] attr_accessor :creator # serializes the core.xml document # @return [String] def to_xml_string(str = '') str << '' str << '' str << '' << self.creator << '' str << '' << Time.now.strftime('%Y-%m-%dT%H:%M:%S') << 'Z' str << '0' str << '' end end end