Sha256: a9388eb63e34e08ebab0ffaf44913bea2f3eb8eefa366d84ed58ece3e465fba3

Contents?: true

Size: 559 Bytes

Versions: 6

Compression:

Stored size: 559 Bytes

Contents

module Axlsx
  # 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
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
axlsx-1.0.7 lib/axlsx/content_type/content_type.rb~
axlsx-1.0.6 lib/axlsx/content_type/content_type.rb~
axlsx-1.0.5 lib/axlsx/content_type/content_type.rb~
axlsx-1.0.4 lib/axlsx/content_type/content_type.rb~
axlsx-1.0.3 lib/axlsx/content_type/content_type.rb~
axlsx-1.0.1 lib/axlsx/content_type/content_type.rb~