Class: DocRipper::DocxRipper
- Inherits:
-
Ripper::Base
- Object
- Ripper::Base
- DocRipper::DocxRipper
- Defined in:
- lib/doc_ripper/docx_ripper.rb
Instance Attribute Summary
Attributes inherited from Ripper::Base
Instance Method Summary collapse
Methods inherited from Ripper::Base
Constructor Details
This class inherits a constructor from DocRipper::Ripper::Base
Instance Method Details
#rip ⇒ Object
4 5 6 |
# File 'lib/doc_ripper/docx_ripper.rb', line 4 def rip @text ||= system(%Q[ unzip -p #{to_shell(@file_path)} | grep '<w:t' | sed 's/<[^<]*>//g' | grep -v '^[[:space:]]*$' > #{to_shell(@text_file_path)} ]) end |