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
10 11 12 13 14 |
# File 'lib/asciidoctor/reducer/preprocessor.rb', line 10 def process doc, reader doc.[:preserve_conditionals] ? (reader.extend IncludeDirectiveTracker) : (reader.extend ConditionalDirectiveTracker, IncludeDirectiveTracker) end |