Class: Asciidoctor::Reducer::Preprocessor
- Inherits:
-
Extensions::Preprocessor
- Object
- Extensions::Preprocessor
- Asciidoctor::Reducer::Preprocessor
- 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.[:preserve_conditionals] ? (reader.extend IncludeDirectiveTracker) : (reader.extend ConditionalDirectiveTracker, IncludeDirectiveTracker) end |