Sha256: ca92f76eeb69a291224f761e659d8efd4a63b54725b6f84534ac577eb7dcbea6
Contents?: true
Size: 680 Bytes
Versions: 1
Compression:
Stored size: 680 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 automatcially managed by the package package. class ContentType < SimpleTypedList def initialize super [Override, Default] end # Generates the xml document for [Content_Types].xml # @return [String] The document as a string. def to_xml() builder = Nokogiri::XML::Builder.new(:encoding => ENCODING) do |xml| xml.Types(:xmlns => Axlsx::XML_NS_T) { each { |type| type.to_xml(xml) } } end builder.to_xml(:save_with => 0) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axlsx-1.0.17 | lib/axlsx/content_type/content_type.rb |