lib/mdoc/pipeline.rb in mdoc-0.0.8 vs lib/mdoc/pipeline.rb in mdoc-0.0.9

- old
+ new

@@ -42,9 +42,14 @@ def remove(prc) prc = get_prc(prc) prc.map { |pn| @processors.delete(pn) } end + def enabled?(prc) + prc = get_prc(prc) + @processors.include(prc) + end + # recursively apply processors to document def apply!(document) @processors.each do |pn| prc = Mdoc.get_processor(pn) prc.new.pre_processors.each { |p| document.apply!(p) }