Class: XlsxKit::Workbook::RelsHandler
- Inherits:
-
Object
- Object
- XlsxKit::Workbook::RelsHandler
- Defined in:
- lib/xlsxkit/workbook.rb
Overview
Rels XML SAX Handler
Instance Attribute Summary collapse
-
#rels ⇒ Object
readonly
Returns the value of attribute rels.
Instance Method Summary collapse
- #characters(text) ⇒ Object
- #end_element(name) ⇒ Object
-
#initialize ⇒ RelsHandler
constructor
A new instance of RelsHandler.
- #start_element(name, attrs) ⇒ Object
Constructor Details
#initialize ⇒ RelsHandler
Returns a new instance of RelsHandler.
265 266 267 |
# File 'lib/xlsxkit/workbook.rb', line 265 def initialize @rels = {} end |
Instance Attribute Details
#rels ⇒ Object (readonly)
Returns the value of attribute rels.
263 264 265 |
# File 'lib/xlsxkit/workbook.rb', line 263 def rels @rels end |
Instance Method Details
#characters(text) ⇒ Object
276 |
# File 'lib/xlsxkit/workbook.rb', line 276 def characters(text); end |
#end_element(name) ⇒ Object
275 |
# File 'lib/xlsxkit/workbook.rb', line 275 def end_element(name); end |
#start_element(name, attrs) ⇒ Object
269 270 271 272 273 |
# File 'lib/xlsxkit/workbook.rb', line 269 def start_element(name, attrs) if name == 'Relationship' @rels[attrs['Id']] = attrs['Target'] end end |