Class: PreambleProcessor

Inherits:
Asciidoctor::Extensions::IncludeProcessor
  • Object
show all
Defined in:
lib/asciidoctor-latex/preamble_processor.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) process(doc, reader, target, attributes)



8
9
10
11
12
13
14
15
# File 'lib/asciidoctor-latex/preamble_processor.rb', line 8

def process doc, reader, target, attributes
  content = []
  content << "He took his vorpal sword in hand,"
  content << "Longtime the manxome foe he sought"
  reader.push_include content, target, target, 1, attributes
  # reader.push_include content
  reader
end