Class: DocRipper::Ripper::Base
- Inherits:
-
Object
- Object
- DocRipper::Ripper::Base
- Defined in:
- lib/doc_ripper/base.rb
Direct Known Subclasses
Formats::DocxRipper, Formats::MsDocRipper, Formats::PdfRipper, Formats::SketchRipper, TextRipper
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(file_path, options = {}) ⇒ Base
constructor
A new instance of Base.
- #read_type ⇒ Object
Constructor Details
#initialize(file_path, options = {}) ⇒ Base
7 8 9 10 11 |
# File 'lib/doc_ripper/base.rb', line 7 def initialize(file_path, = {}) @file_path = file_path @text_file_path = "#{file_path.split('.').first}.txt" = end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/doc_ripper/base.rb', line 5 def text @text end |
Instance Method Details
#read_type ⇒ Object
13 14 15 |
# File 'lib/doc_ripper/base.rb', line 13 def read_type :file end |