Class: Metanorma::Plugin::Lutaml::LutamlPreprocessor

Inherits:
Asciidoctor::Extensions::Preprocessor
  • Object
show all
Defined in:
lib/metanorma/plugin/lutaml/lutaml_preprocessor.rb

Overview

Class for processing Lutaml files

Instance Method Summary collapse

Instance Method Details

#process(document, reader) ⇒ Object



15
16
17
18
# File 'lib/metanorma/plugin/lutaml/lutaml_preprocessor.rb', line 15

def process(document, reader)
  input_lines = reader.readlines.to_enum
  Asciidoctor::Reader.new(processed_lines(document, input_lines))
end