Module: DocRipper
- Defined in:
- lib/doc_ripper.rb,
lib/doc_ripper/base.rb,
lib/doc_ripper/version.rb,
lib/doc_ripper/exceptions.rb,
lib/doc_ripper/text_ripper.rb,
lib/doc_ripper/formats/pdf_ripper.rb,
lib/doc_ripper/formats/docx_ripper.rb,
lib/doc_ripper/formats/ms_doc_ripper.rb,
lib/doc_ripper/formats/sketch_ripper.rb
Defined Under Namespace
Modules: Formats, Ripper
Classes: FileNotFound, TextRipper, UnsupportedFileType
Constant Summary
collapse
- VERSION =
"0.0.7.1"
Class Method Summary
collapse
Class Method Details
.rip(path, options = {}) ⇒ Object
14
15
16
|
# File 'lib/doc_ripper.rb', line 14
def rip(path, options = {})
TextRipper.new(path, options).text
end
|
.rip!(path) ⇒ Object
18
19
20
21
22
|
# File 'lib/doc_ripper.rb', line 18
def rip!(path)
text = rip(path, raise: true)
text || raise(FileNotFound)
end
|