Sha256: 65feb30dcd510c1628ab30e1247c478e1f46d63f6382a22e2c7d09bd887d9ec9

Contents?: true

Size: 598 Bytes

Versions: 7

Compression:

Stored size: 598 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)
      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
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
metanorma-0.2.11 lib/metanorma/processor.rb
metanorma-0.2.10 lib/metanorma/processor.rb
metanorma-0.2.9 lib/metanorma/processor.rb
metanorma-0.2.8 lib/metanorma/processor.rb
metanorma-0.2.7 lib/metanorma/processor.rb
metanorma-0.2.6 lib/metanorma/processor.rb
metanorma-0.2.5 lib/metanorma/processor.rb