Sha256: ce6bd0733a38c592fc0ac0072c8aaedee168be6079b88dbea2366fc8810e51f4

Contents?: true

Size: 612 Bytes

Versions: 6

Compression:

Stored size: 612 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

6 entries across 6 versions & 1 rubygems

Version Path
axlsx-1.3.1 lib/axlsx/content_type/content_type.rb
axlsx-1.2.3 lib/axlsx/content_type/content_type.rb
axlsx-1.2.2 lib/axlsx/content_type/content_type.rb
axlsx-1.2.1 lib/axlsx/content_type/content_type.rb
axlsx-1.2.0 lib/axlsx/content_type/content_type.rb
axlsx-1.1.8 lib/axlsx/content_type/content_type.rb