Class: AntiWordR::DocFilePath
Overview
Handle a string-based local path as input, extends PdfFile
Instance Attribute Summary
Attributes inherited from DocFile
Instance Method Summary collapse
-
#initialize(input_path, target_path = nil) ⇒ DocFilePath
constructor
A new instance of DocFilePath.
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 |