Class: ChupaText::Decomposers::OfficeOpenXMLDocument

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

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 = {}) ⇒ OfficeOpenXMLDocument

Returns a new instance of OfficeOpenXMLDocument.


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-document.rb', line 24

def initialize(options={})
  super
  @extensions = [
    "docx",
    "docm",
    "dotx",
    "dotm",
  ]
  @mime_types = [
    "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
    "application/vnd.ms-word.document.macroEnabled.12",
    "application/vnd.openxmlformats-officedocument.wordprocessingml.template",
    "application/vnd.ms-word.template.macroEnabled.12",
  ]
  @namespace_uri =
    "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
end