Sha256: b0a55580a908de2b9b252d159502940118db3fa7aac172e1bf18c3e665de1180
Contents?: true
Size: 679 Bytes
Versions: 6
Compression:
Stored size: 679 Bytes
Contents
module Axlsx # Relationships are a collection of Relations that define how package parts are related. # @note The package automatically manages releationships. class Relationships < SimpleTypedList # Creates a new Relationships collection based on SimpleTypedList def initialize super Relationship end # Serializes the relationships document. # @return [String] def to_xml() builder = Nokogiri::XML::Builder.new(:encoding => ENCODING) do |xml| xml.Relationships(:xmlns => Axlsx::RELS_R) { each_with_index { |rel, index| rel.to_xml(xml, "rId#{index+1}") } } end builder.to_xml end end end
Version data entries
6 entries across 6 versions & 1 rubygems