Class: DocumentExporter::Docx

Inherits:
Object
  • Object
show all
Defined in:
lib/document_exporter/docx.rb

Instance Method Summary collapse

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

#exportObject



11
12
13
# File 'lib/document_exporter/docx.rb', line 11

def export
  PandocRuby.convert content, from: :html, to: :docx
end