# encoding: UTF-8 module Axlsx # The core object for the package. # @note Packages manage their own core object. # @see Package#core class Core # The author of the document. By default this is 'axlsx' # @return [String] attr_accessor :creator # Creates a new Core object. # @option options [String] creator def initialize(options={}) @creator = options[:creator] || 'axlsx' end # 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') << '' str << '0' str << '' end end end