Sha256: 0b9b3aa5b7ca5997400ed9cc8dbd0d316db96d29f647c41021a1b315754b99bd
Contents?: true
Size: 652 Bytes
Versions: 13
Compression:
Stored size: 652 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 def to_xml_string(str = '') str << '<?xml version="1.0" encoding="UTF-8"?>' str << '<Relationships xmlns="' << RELS_R << '">' each_with_index { |rel, index| rel.to_xml_string(index+1, str) } str << '</Relationships>' end end end
Version data entries
13 entries across 13 versions & 1 rubygems