class Axlsx::ContentType

ContentTypes used in the package. This is automatically managed by the package package.

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/axlsx/content_type/content_type.rb, line 10
def initialize
  super [Override, Default]
end

Public Instance Methods

to_xml_string(str = '') click to toggle source

Serializes the object @param [String] str @return [String]

# File lib/axlsx/content_type/content_type.rb, line 17
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