Sha256: 647c5a6353dedb8fe627569e79b31716db0bc6db710f64e4a9630a293ba51f3b
Contents?: true
Size: 783 Bytes
Versions: 7
Compression:
Stored size: 783 Bytes
Contents
# Registry of all Metanorma types and entry points # module Metanorma class Processor attr_reader :short attr_reader :input_format attr_reader :asciidoctor_backend def initialize raise "This is an abstract class!" end def output_formats { xml: "xml", rxl: "rxl" } end def input_to_isodoc(file, filename) raise "This is an abstract class!" end def output(isodoc_node, outname, format, options={}) File.open(outname, "w:UTF-8") { |f| f.write(isodoc_node) } end def extract_options(file) Metanorma::Input::Asciidoc.new.extract_options(file) end def extract_metanorma_options(file) Metanorma::Input::Asciidoc.new.extract_metanorma_options(file) end end end
Version data entries
7 entries across 7 versions & 1 rubygems