class Metanorma::Csand::Processor
Public Class Methods
new()
click to toggle source
# File lib/metanorma/csand/processor.rb, line 7 def initialize @short = :csand @input_format = :asciidoc @asciidoctor_backend = :csand end
Public Instance Methods
input_to_isodoc(file)
click to toggle source
# File lib/metanorma/csand/processor.rb, line 23 def input_to_isodoc(file) Metanorma::Input::Asciidoc.new.process(file, @asciidoctor_backend) end
output(isodoc_node, outname, format, options={})
click to toggle source
Calls superclass method
# File lib/metanorma/csand/processor.rb, line 27 def output(isodoc_node, outname, format, options={}) case format when :html IsoDoc::Csand::HtmlConvert.new(options).convert(outname, isodoc_node) else super end end
output_formats()
click to toggle source
Calls superclass method
# File lib/metanorma/csand/processor.rb, line 13 def output_formats super.merge( html: "html" ) end
version()
click to toggle source
# File lib/metanorma/csand/processor.rb, line 19 def version "Asciidoctor::Csand #{Asciidoctor::Csand::VERSION}" end