class Xlsxrb::Ooxml::RelationshipsParser::Listener
SAX listener for .rels relationship files.
Attributes
entries
[R]
untyped
relationships
[R]
untyped
types
[R]
untyped
Public Class Methods
() → untyped
Source
# File lib/xlsxrb/ooxml/workbook_parser.rb, line 215 def initialize @relationships = {} @types = {} @entries = [] end
Public Instance Methods
(untyped _text) → untyped
Source
# File lib/xlsxrb/ooxml/workbook_parser.rb, line 238 def characters(_text); end
(untyped _uri, untyped _localname, untyped _qname) → untyped
Source
# File lib/xlsxrb/ooxml/workbook_parser.rb, line 236 def end_element(_uri, _localname, _qname); end
(String? rid, String? target, String? rel_type) → void
Source
# File lib/xlsxrb/ooxml/workbook_parser.rb, line 228 def record(rid, target, rel_type) return unless rid && target @relationships[rid] = target @types[rid] = rel_type if rel_type @entries << { id: rid, type: rel_type, target: target } end
(untyped _uri, untyped localname, untyped _qname, untyped attrs) → untyped
Source
# File lib/xlsxrb/ooxml/workbook_parser.rb, line 221 def start_element(_uri, localname, _qname, attrs) return unless localname == "Relationship" record(attrs["Id"], attrs["Target"], attrs["Type"]) end