Sha256: 9acd072319152b1e580314e792197693f95f8f95b7462a856e73074e19c3398f

Contents?: true

Size: 413 Bytes

Versions: 13

Compression:

Stored size: 413 Bytes

Contents

require 'asciidoctor'
require 'asciidoctor/extensions'


class PreambleProcessor < Asciidoctor::Extensions::IncludeProcessor

  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
end


Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
asciidoctor-latex-1.5.0.17.dev lib/asciidoctor-latex/preamble_processor.rb
asciidoctor-latex-1.5.0.16.dev lib/asciidoctor-latex/preamble_processor.rb
asciidoctor-latex-1.5.0.15.dev lib/asciidoctor-latex/preamble_processor.rb
asciidoctor-latex-1.5.0.14.dev lib/asciidoctor-latex/preamble_processor.rb
asciidoctor-latex-1.5.0.13.dev lib/asciidoctor-latex/preamble_processor.rb
asciidoctor-latex-1.5.0.12.dev lib/asciidoctor-latex/preamble_processor.rb
asciidoctor-latex-1.5.0.11.dev lib/asciidoctor-latex/preamble_processor.rb
asciidoctor-latex-1.5.0.10.dev lib/asciidoctor-latex/preamble_processor.rb
asciidoctor-latex-1.5.0.9.dev lib/asciidoctor-latex/preamble_processor.rb
asciidoctor-latex-1.5.0.8b.dev lib/asciidoctor-latex/preamble_processor.rb
asciidoctor-latex-1.5.0.7.dev lib/asciidoctor-latex/preamble_processor.rb
asciidoctor-latex-1.5.0.5.dev lib/asciidoctor-latex/preamble_processor.rb
asciidoctor-latex-1.5.0.4.dev lib/asciidoctor-latex/preamble_processor.rb