class Metanorma::Mpfd::Processor
Public Class Methods
new()
click to toggle source
# File lib/metanorma/mpfd/processor.rb, line 14 def initialize @short = :mpfd @input_format = :asciidoc @asciidoctor_backend = :mpfd end
Public Instance Methods
input_to_isodoc(file, filename)
click to toggle source
# File lib/metanorma/mpfd/processor.rb, line 31 def input_to_isodoc(file, filename) Metanorma::Input::Asciidoc.new.process(file, filename, @asciidoctor_backend) end
output(isodoc_node, outname, format, options={})
click to toggle source
Calls superclass method
# File lib/metanorma/mpfd/processor.rb, line 35 def output(isodoc_node, outname, format, options={}) case format when :html IsoDoc::Mpfd::HtmlConvert.new(options).convert(outname, isodoc_node) when :doc IsoDoc::Mpfd::WordConvert.new(options).convert(outname, isodoc_node) else super end end
output_formats()
click to toggle source
Calls superclass method
# File lib/metanorma/mpfd/processor.rb, line 20 def output_formats super.merge( html: "html", doc: "doc" ) end
version()
click to toggle source
# File lib/metanorma/mpfd/processor.rb, line 27 def version "Metanorma::Mpfd #{Metanorma::Mpfd::VERSION}" end