Sha256: 36bd45a06fe489dc1c926411430c93c87496aa1a2833d722536e8685c0f39c76
Contents?: true
Size: 734 Bytes
Versions: 1
Compression:
Stored size: 734 Bytes
Contents
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axlsx-1.0.16 | lib/axlsx/rels/relationships.rb |