Sha256: 59244c00e3802b0ae4ac4fa2a096432352d75d25b2ed8972a59ed687c462fb1f

Contents?: true

Size: 610 Bytes

Versions: 8

Compression:

Stored size: 610 Bytes

Contents

# encoding: UTF-8
module Axlsx
  require 'axlsx/content_type/default.rb'
  require 'axlsx/content_type/override.rb'

  # ContentTypes used in the package. This is automatically managed by the package package.
  class ContentType < SimpleTypedList

    def initialize
      super [Override, Default]
    end

    # Serializes the object
    # @param [String] str
    # @return [String]
    def to_xml_string(str = '')
      str << '<?xml version="1.0" encoding="UTF-8"?>'
      str << '<Types xmlns="' << XML_NS_T << '">'
      each { |type| type.to_xml_string(str) }
      str << '</Types>'
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
axlsx-1.1.7 lib/axlsx/content_type/content_type.rb
axlsx-1.1.6 lib/axlsx/content_type/content_type.rb
axlsx-1.1.5 lib/axlsx/content_type/content_type.rb
axlsx-1.1.4 lib/axlsx/content_type/content_type.rb
axlsx-1.1.3 lib/axlsx/content_type/content_type.rb
axlsx-1.1.2 lib/axlsx/content_type/content_type.rb
axlsx-1.1.1 lib/axlsx/content_type/content_type.rb
axlsx-1.1.0 lib/axlsx/content_type/content_type.rb