class Metanorma::Vsd::Processor

Public Instance Methods

configuration() click to toggle source
# File lib/metanorma/vsd/processor.rb, line 6
def configuration
  Metanorma::Vsd.configuration
end
input_to_isodoc(file, filename) click to toggle source
# File lib/metanorma/vsd/processor.rb, line 21
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/vsd/processor.rb, line 25
def output(isodoc_node, outname, format, options={})
  case format
  when :html
    IsoDoc::Vsd::HtmlConvert.new(options).convert(outname, isodoc_node)
  when :doc
    IsoDoc::Vsd::WordConvert.new(options).convert(outname, isodoc_node)
  else
    super
  end
end
output_formats() click to toggle source
Calls superclass method
# File lib/metanorma/vsd/processor.rb, line 10
def output_formats
  super.merge(
    html: "html",
    doc: "doc"
  ).tap { |hs| hs.delete(:pdf) }
end
version() click to toggle source
# File lib/metanorma/vsd/processor.rb, line 17
def version
  "Metanorma::Vsd #{Metanorma::Vsd::VERSION}"
end