Class: DocRipper::Ripper::Base

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_path, options = {}) ⇒ Base



7
8
9
10
11
# File 'lib/doc_ripper/base.rb', line 7

def initialize(file_path, options = {})
  @file_path      = file_path
  @text_file_path = "#{file_path.split('.').first}.txt"
  @options = options
end

Instance Attribute Details

#textObject (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_typeObject



13
14
15
# File 'lib/doc_ripper/base.rb', line 13

def read_type
  :file
end