Class: DocbookFormatter
- Inherits:
-
Formatter
- Object
- CompositeProcessor
- Formatter
- DocbookFormatter
- Defined in:
- lib/notroff/formatter.rb
Instance Method Summary collapse
-
#initialize(input, output) ⇒ DocbookFormatter
constructor
A new instance of DocbookFormatter.
Methods inherited from CompositeProcessor
#add_processor, #dump, #prepend_processor, #process
Constructor Details
#initialize(input, output) ⇒ DocbookFormatter
Returns a new instance of DocbookFormatter.
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/notroff/formatter.rb', line 25 def initialize(input, output) super() prepend_processor FileReader.new(input) add_processor CodeParagraphJoiner.new add_processor Grouper.new(:bullet) add_processor Grouper.new(:list) add_processor DocbookRenderer.new add_processor OdtReplacer.new(output) add_processor OdtReplacer.new(output) add_processor FileWriter.new(output) end |