Class: DocumentExporter::Docx
- Inherits:
-
Object
- Object
- DocumentExporter::Docx
- Defined in:
- lib/document_exporter/docx.rb
Instance Method Summary collapse
- #export ⇒ Object
-
#initialize(document) ⇒ Docx
constructor
A new instance of Docx.
Constructor Details
#initialize(document) ⇒ Docx
Returns a new instance of Docx.
7 8 9 |
# File 'lib/document_exporter/docx.rb', line 7 def initialize(document) @document = document end |
Instance Method Details
#export ⇒ Object
11 12 13 |
# File 'lib/document_exporter/docx.rb', line 11 def export PandocRuby.convert content, from: :html, to: :docx end |