Class: ChupaText::Decomposers::OfficeOpenXMLWorkbook

Inherits:
OfficeOpenXML show all
Defined in:
lib/chupa-text/decomposers/office-open-xml-workbook.rb

Defined Under Namespace

Classes: SheetListener, WorkbookListener

Instance Method Summary collapse

Methods inherited from OfficeOpenXML

#decompose, #target?, #target_score

Methods inherited from ChupaText::Decomposer

#decompose, registry, #target?, #target_score

Constructor Details

#initialize(options = {}) ⇒ OfficeOpenXMLWorkbook

Returns a new instance of OfficeOpenXMLWorkbook.


24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/chupa-text/decomposers/office-open-xml-workbook.rb', line 24

def initialize(options={})
  super
  @extensions = [
    "xlsx",
    "xlsm",
    "xltx",
    "xltm",
  ]
  @mime_types = [
    "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
    "application/vnd.ms-excel.sheet.macroEnabled.12",
    "application/vnd.openxmlformats-officedocument.spreadsheetml.template",
    "application/vnd.ms-excel.template.macroEnabled.12",
  ]
  @namespace_uri =
    "http://schemas.openxmlformats.org/spreadsheetml/2006/main"
end