Sha256: 7e93ec9cf86f3d014029d240ae2620a845cbb0c11b04321bb3738824dee587f0
Contents?: true
Size: 752 Bytes
Versions: 2
Compression:
Stored size: 752 Bytes
Contents
# encoding: UTF-8 module Axlsx require 'axlsx/rels/relationship.rb' # 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(:save_with => 0) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axlsx-1.0.18 | lib/axlsx/rels/relationships.rb |
axlsx-1.0.17 | lib/axlsx/rels/relationships.rb |