class Xlsxrb::Ooxml::WorkbookParser::Listener
SAX listener for workbook.xml sheets.
Attributes
Public Class Methods
Public Instance Methods
Source
# File lib/xlsxrb/ooxml/workbook_parser.rb, line 40 def characters(_text); end
# File lib/xlsxrb/ooxml/workbook_parser.rb, line 38 def end_element(_uri, _localname, _qname); end
# File lib/xlsxrb/ooxml/workbook_parser.rb, line 28 def start_element(_uri, localname, _qname, attrs) return unless localname == "sheet" @sheets << { name: attrs["name"], sheet_id: attrs["sheetId"]&.to_i, r_id: attrs["r:id"] || attrs["id"] || attrs.find { |k, _| k.end_with?(":id") }&.last } end