Class: DocRipper::Ripper::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/doc_ripper/ripper/base.rb

Direct Known Subclasses

DocxRipper, MsDocRipper, PdfRipper, TextRipper

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_path) ⇒ Base

Returns a new instance of Base.



7
8
9
10
# File 'lib/doc_ripper/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

#textObject (readonly)

Returns the value of attribute text.



5
6
7
# File 'lib/doc_ripper/ripper/base.rb', line 5

def text
  @text
end