Class: XlsxKit::Workbook::RelsHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/xlsxkit/workbook.rb

Overview


Rels XML SAX Handler

Instance Attribute Summary collapse

Instance Method Summary collapse

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