Sha256: ba5361ce8d0746fec58d911c20f6fcaa8feaedd06d2bb379c8e4addc263805c1

Contents?: true

Size: 667 Bytes

Versions: 8

Compression:

Stored size: 667 Bytes

Contents

# encoding: UTF-8
module Axlsx
  require 'axlsx/content_type/abstract_content_type.rb'
  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 & 2 rubygems

Version Path
caxlsx-2.0.2 lib/axlsx/content_type/content_type.rb
axlsx-2.0.1 lib/axlsx/content_type/content_type.rb
axlsx-2.0.0 lib/axlsx/content_type/content_type.rb
axlsx-1.3.6 lib/axlsx/content_type/content_type.rb
axlsx-1.3.5 lib/axlsx/content_type/content_type.rb
axlsx-1.3.4 lib/axlsx/content_type/content_type.rb
axlsx-1.3.3 lib/axlsx/content_type/content_type.rb
axlsx-1.3.2 lib/axlsx/content_type/content_type.rb