Sha256: 9c3ae6e6cc16bd910877f4e9ebdcd05174a7aba7c13853b3d4105ea6c655c4ea

Contents?: true

Size: 669 Bytes

Versions: 17

Compression:

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

17 entries across 17 versions & 6 rubygems

Version Path
caxlsx-3.3.0 lib/axlsx/content_type/content_type.rb
caxlsx-3.1.1 lib/axlsx/content_type/content_type.rb
caxlsx-3.1.0 lib/axlsx/content_type/content_type.rb
bonio-axlsx-2.2.3 lib/axlsx/content_type/content_type.rb
caxlsx-3.0.4 lib/axlsx/content_type/content_type.rb
caxlsx-3.0.3 lib/axlsx/content_type/content_type.rb
caxlsx-3.0.2 lib/axlsx/content_type/content_type.rb
caxlsx-3.0.1 lib/axlsx/content_type/content_type.rb
caxlsx-3.0.0 lib/axlsx/content_type/content_type.rb
axlsx-alt-3.0.1 lib/axlsx/content_type/content_type.rb
axlsx-alt-3.0.0 lib/axlsx/content_type/content_type.rb
axlsx-3.0.0.pre lib/axlsx/content_type/content_type.rb
bonio-axlsx-2.2.2 lib/axlsx/content_type/content_type.rb
bonio-axlsx-2.2.1 lib/axlsx/content_type/content_type.rb
dg-axlsx-2.1.0 lib/axlsx/content_type/content_type.rb
axlsx-2.1.0.pre lib/axlsx/content_type/content_type.rb
l_axlsx-2.0.1 lib/axlsx/content_type/content_type.rb