Class: Metanorma::VG::Processor
- Inherits:
-
Generic::Processor
- Object
- Generic::Processor
- Metanorma::VG::Processor
- Defined in:
- lib/metanorma/vg/processor.rb
Instance Method Summary collapse
- #configuration ⇒ Object
- #output(isodoc_node, outname, format, options = {}) ⇒ Object
- #output_formats ⇒ Object
- #version ⇒ Object
Instance Method Details
#configuration ⇒ Object
6 7 8 |
# File 'lib/metanorma/vg/processor.rb', line 6 def configuration Metanorma::VG.configuration end |
#output(isodoc_node, outname, format, options = {}) ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/metanorma/vg/processor.rb', line 21 def output(isodoc_node, outname, format, ={}) case format when :html IsoDoc::VG::HtmlConvert.new().convert(outname, isodoc_node) when :doc IsoDoc::VG::WordConvert.new().convert(outname, isodoc_node) else super end end |
#output_formats ⇒ Object
10 11 12 13 14 15 |
# File 'lib/metanorma/vg/processor.rb', line 10 def output_formats super.merge( html: "html", doc: "doc" ).tap { |hs| hs.delete(:pdf) } end |