Class: ChupaText::Decomposers::OfficeOpenXMLWorkbook::WorkbookListener
- Inherits:
-
SAXListener
- Object
- SAXListener
- ChupaText::Decomposers::OfficeOpenXMLWorkbook::WorkbookListener
- Defined in:
- lib/chupa-text/decomposers/office-open-xml-workbook.rb
Constant Summary collapse
- URI =
"http://schemas.openxmlformats.org/spreadsheetml/2006/main"
Instance Method Summary collapse
-
#initialize(sheet_names) ⇒ WorkbookListener
constructor
A new instance of WorkbookListener.
- #start_element(uri, local_name, qname, attributes) ⇒ Object
Constructor Details
#initialize(sheet_names) ⇒ WorkbookListener
Returns a new instance of WorkbookListener.
103 104 105 |
# File 'lib/chupa-text/decomposers/office-open-xml-workbook.rb', line 103 def initialize(sheet_names) @sheet_names = sheet_names end |
Instance Method Details
#start_element(uri, local_name, qname, attributes) ⇒ Object
107 108 109 110 111 112 113 |
# File 'lib/chupa-text/decomposers/office-open-xml-workbook.rb', line 107 def start_element(uri, local_name, qname, attributes) return unless uri == URI case local_name when "sheet" @sheet_names << attributes["name"] end end |