Class: Thumblemonks::Indico::ExtractedDocument
- Inherits:
-
Object
- Object
- Thumblemonks::Indico::ExtractedDocument
- Defined in:
- lib/thumblemonks/indico/extracted_document.rb
Direct Known Subclasses
HTMLDocument, PDFDocument, RTFDocument, TextDocument, WordDocument
Defined Under Namespace
Classes: ExtractionError
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
- #extract_text ⇒ Object
- #extract_text! ⇒ Object
-
#initialize(content) ⇒ ExtractedDocument
constructor
A new instance of ExtractedDocument.
Constructor Details
#initialize(content) ⇒ ExtractedDocument
Returns a new instance of ExtractedDocument.
8 9 10 |
# File 'lib/thumblemonks/indico/extracted_document.rb', line 8 def initialize(content) @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
6 7 8 |
# File 'lib/thumblemonks/indico/extracted_document.rb', line 6 def content @content end |
Instance Method Details
#extract_text ⇒ Object
12 13 14 |
# File 'lib/thumblemonks/indico/extracted_document.rb', line 12 def extract_text @extracted_text ||= extract_text! end |
#extract_text! ⇒ Object
16 17 18 |
# File 'lib/thumblemonks/indico/extracted_document.rb', line 16 def extract_text! raise NotImplementedError end |