class DocxCrConverter::ExtractFiles
- DocxCrConverter::ExtractFiles
- Reference
- Object
Defined in:
docx_cr_converter/extract_files.crConstructors
-
.new(docx_path : String)
@param docx_path [String] path to docx filename @return [XML::Document] XML document @return [Array] errors @example DocxCrConverter::ExtractFiles.new("path/to/file.docx") # => #XML::Document:0x00007f8b9c0a1b00 # => [] @example DocxCrConverter::ExtractFiles.new("path/to/file.docx") # => nil # => ["No such file or directory @ rb_sysopen - path/to/file"] @example DocxCrConverter::ExtractFiles.new("path/to/file.docx") # => nil # => ["File is not a zip file"]
Instance Method Summary
- #docx_path : String
- #errors : Array(String)
-
#errors?
@return [Boolean] true if errors are present @example DocxCrConverter::ExtractFiles.new("path/to/file.docx").errors? # => false @example DocxCrConverter::ExtractFiles.new("path/to/file.docx").errors? # => true
- #xml_document : String | XML::Node
Constructor Detail
@param docx_path [String] path to docx filename @return [XML::Document] XML document @return [Array] errors @example DocxCrConverter::ExtractFiles.new("path/to/file.docx")
=> #XML::Document:0x00007f8b9c0a1b00
=> []
@example DocxCrConverter::ExtractFiles.new("path/to/file.docx")
=> nil
=> ["No such file or directory @ rb_sysopen - path/to/file"]
@example DocxCrConverter::ExtractFiles.new("path/to/file.docx")
=> nil
=> ["File is not a zip file"]
Instance Method Detail
@return [Boolean] true if errors are present @example DocxCrConverter::ExtractFiles.new("path/to/file.docx").errors?
=> false
@example DocxCrConverter::ExtractFiles.new("path/to/file.docx").errors?