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