Sha256: 78ac7a0cc300dc9674f3076bd297595a8de082c48ee2b127e29184a0109da590
Contents?: true
Size: 670 Bytes
Versions: 4
Compression:
Stored size: 670 Bytes
Contents
# frozen_string_literal: true module Axlsx require 'axlsx/content_type/abstract_content_type' require 'axlsx/content_type/default' require 'axlsx/content_type/override' # 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
4 entries across 4 versions & 2 rubygems