Class: Metanorma::Plugin::Lutaml::LutamlGmlDictionaryBlock

Inherits:
Asciidoctor::Extensions::BlockProcessor
  • Object
show all
Includes:
LutamlGmlDictionaryBase
Defined in:
lib/metanorma/plugin/lutaml/lutaml_gml_dictionary_block.rb

Instance Method Summary collapse

Instance Method Details

#process(parent, reader, attrs) ⇒ Object



13
14
15
16
17
# File 'lib/metanorma/plugin/lutaml/lutaml_gml_dictionary_block.rb', line 13

def process(parent, reader, attrs)
  lines = reader.lines
  tmpl = ::Liquid::Template.parse(lines.join("\n"))
  render(tmpl, parent, attrs, attrs[2])
end