diff options
| author | randym <[email protected]> | 2017-04-01 18:45:54 +0900 |
|---|---|---|
| committer | randym <[email protected]> | 2017-04-01 18:45:54 +0900 |
| commit | 83e23982914e87bb4f2feb00c508580b8fa85cdb (patch) | |
| tree | 26f13718f0a2494a65c73a2c3d95146cc50b5bf4 /lib/axlsx/rels/relationships.rb | |
| parent | b4bdbfa6a3da344a7bd5a1d433be6488435b94f8 (diff) | |
| download | caxlsx-83e23982914e87bb4f2feb00c508580b8fa85cdb.tar.gz caxlsx-83e23982914e87bb4f2feb00c508580b8fa85cdb.zip | |
chore(doc): document some members
Diffstat (limited to 'lib/axlsx/rels/relationships.rb')
| -rw-r--r-- | lib/axlsx/rels/relationships.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/axlsx/rels/relationships.rb b/lib/axlsx/rels/relationships.rb index b855abcd..5d07f612 100644 --- a/lib/axlsx/rels/relationships.rb +++ b/lib/axlsx/rels/relationships.rb @@ -10,14 +10,17 @@ require 'axlsx/rels/relationship.rb' def initialize super Relationship end - + # The relationship instance for the given source object, or nil if none exists. # @see Relationship#source_obj # @return [Relationship] def for(source_obj) find{ |rel| rel.source_obj == source_obj } end - + + # serialize relationships + # @param [String] str + # @return [String] def to_xml_string(str = '') str << '<?xml version="1.0" encoding="UTF-8"?>' str << ('<Relationships xmlns="' << RELS_R << '">') |
