Class: Metanorma::M3AAWG::Processor
- Inherits:
-
Processor
- Object
- Processor
- Metanorma::M3AAWG::Processor
- Defined in:
- lib/metanorma/m3aawg/processor.rb
Instance Method Summary collapse
-
#initialize ⇒ Processor
constructor
A new instance of Processor.
- #output(isodoc_node, inname, outname, format, options = {}) ⇒ Object
- #output_formats ⇒ Object
- #version ⇒ Object
Constructor Details
#initialize ⇒ Processor
Returns a new instance of Processor.
15 16 17 18 19 |
# File 'lib/metanorma/m3aawg/processor.rb', line 15 def initialize @short = [:m3d, :m3aawg] @input_format = :asciidoc @asciidoctor_backend = :m3aawg end |
Instance Method Details
#output(isodoc_node, inname, outname, format, options = {}) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/metanorma/m3aawg/processor.rb', line 33 def output(isodoc_node, inname, outname, format, ={}) case format when :html IsoDoc::M3AAWG::HtmlConvert.new().convert(inname, isodoc_node, nil, outname) when :doc IsoDoc::M3AAWG::WordConvert.new().convert(inname, isodoc_node, nil, outname) when :pdf IsoDoc::M3AAWG::WordConvert.new().convert(inname, isodoc_node, nil, outname) when :presentation IsoDoc::M3AAWG::PresentationXMLConvert.new().convert(inname, isodoc_node, nil, outname) else super end end |
#output_formats ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/metanorma/m3aawg/processor.rb', line 21 def output_formats super.merge( html: "html", doc: "doc", pdf: "pdf" ) end |