Class: AntiWordR::DocFilePath

Inherits:
DocFile
  • Object
show all
Defined in:
lib/antiwordr.rb

Overview

Handle a string-based local path as input, extends PdfFile

Instance Attribute Summary

Attributes inherited from DocFile

#format, #path, #target

Instance Method Summary collapse

Methods inherited from DocFile

#convert, #convert_to_docbook, #convert_to_docbook_document

Constructor Details

#initialize(input_path, target_path = nil) ⇒ DocFilePath

Returns a new instance of DocFilePath.



69
70
71
72
73
74
75
76
77
# File 'lib/antiwordr.rb', line 69

def initialize(input_path, target_path=nil)
  # check to make sure file is legit
  if (!File.exist?(input_path))
    raise AntiWordRError, "invalid file path"
  end
  
  super(input_path, target_path)
  
end