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



10
11
12
13
14
# File 'lib/asciidoctor/reducer/preprocessor.rb', line 10

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