Sha256: 37e03e8d357184b2aa0746974e30e6ac89734906595b3d2d7a6f0d328aa796f4

Contents?: true

Size: 746 Bytes

Versions: 12

Compression:

Stored size: 746 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",
        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

12 entries across 12 versions & 1 rubygems

Version Path
metanorma-0.3.18 lib/metanorma/processor.rb
metanorma-0.3.17 lib/metanorma/processor.rb
metanorma-0.3.16 lib/metanorma/processor.rb
metanorma-0.3.15 lib/metanorma/processor.rb
metanorma-0.3.14 lib/metanorma/processor.rb
metanorma-0.3.13 lib/metanorma/processor.rb
metanorma-0.3.12 lib/metanorma/processor.rb
metanorma-0.3.11 lib/metanorma/processor.rb
metanorma-0.3.10 lib/metanorma/processor.rb
metanorma-0.3.9 lib/metanorma/processor.rb
metanorma-0.3.8 lib/metanorma/processor.rb
metanorma-0.3.7 lib/metanorma/processor.rb