Sha256: 95923654e14321e30b9c0cd93dfe7762dbadbe83b7117d9b8c3ecd44f0caf93d

Contents?: true

Size: 726 Bytes

Versions: 5

Compression:

Stored size: 726 Bytes

Contents

# Registry of all Metanorma types and entry points
#

module Metanorma
  class Processor

    attr_reader :short
    attr_reader :input_format

    def initialize
      raise "This is an abstract class!"
    end

    def output_formats
      {
        xml: "xml"
      }
    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

5 entries across 5 versions & 1 rubygems

Version Path
metanorma-0.3.6 lib/metanorma/processor.rb
metanorma-0.3.5 lib/metanorma/processor.rb
metanorma-0.3.4 lib/metanorma/processor.rb
metanorma-0.3.3 lib/metanorma/processor.rb
metanorma-0.3.2 lib/metanorma/processor.rb