Class: HtmlFormatter
- Inherits:
-
Formatter
- Object
- CompositeProcessor
- Formatter
- HtmlFormatter
- Defined in:
- lib/notroff/formatter.rb
Instance Method Summary collapse
-
#initialize(input, output) ⇒ HtmlFormatter
constructor
A new instance of HtmlFormatter.
Methods inherited from CompositeProcessor
#add_processor, #dump, #prepend_processor, #process
Constructor Details
#initialize(input, output) ⇒ HtmlFormatter
Returns a new instance of HtmlFormatter.
13 14 15 16 17 18 19 20 21 |
# File 'lib/notroff/formatter.rb', line 13 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 HtmlRenderer.new add_processor FileWriter.new(output) end |