Sha256: 0234b4d7c544a05a6e0586e327cd9f1556b985a69c491a09ac51ce8dbd0e4e74
Contents?: true
Size: 717 Bytes
Versions: 15
Compression:
Stored size: 717 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 end end end
Version data entries
15 entries across 15 versions & 1 rubygems