Class: DocRipper::Ripper::Base
- Inherits:
-
Object
- Object
- DocRipper::Ripper::Base
- Defined in:
- lib/doc_ripper/ripper/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(file_path) ⇒ Base
constructor
A new instance of Base.
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
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/doc_ripper/ripper/base.rb', line 5 def text @text end |