Class: SimpleTextExtract::FileExtractor

Inherits:
TextExtractor show all
Defined in:
lib/simple_text_extract/file_extractor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from TextExtractor

call, #extract

Constructor Details

#initialize(filepath:) ⇒ FileExtractor

Returns a new instance of FileExtractor.



7
8
9
# File 'lib/simple_text_extract/file_extractor.rb', line 7

def initialize(filepath:)
  @filepath = filepath
end

Instance Attribute Details

#filepath ⇒ Object (readonly)

Returns the value of attribute filepath.



5
6
7
# File 'lib/simple_text_extract/file_extractor.rb', line 5

def filepath
  @filepath
end