Class: Asciidoctor::Reducer::Preprocessor

Inherits:
Extensions::Preprocessor
  • Object
show all
Defined in:
lib/asciidoctor/reducer/preprocessor.rb

Instance Method Summary collapse

Instance Method Details

#process(doc, reader) ⇒ Object



8
9
10
11
12
# File 'lib/asciidoctor/reducer/preprocessor.rb', line 8

def process doc, reader
  doc.options[:preserve_conditionals] ?
    (reader.extend IncludeDirectiveTracker) :
    (reader.extend ConditionalDirectiveTracker, IncludeDirectiveTracker)
end