Class: Polites::Convert
- Inherits:
-
Object
- Object
- Polites::Convert
- Defined in:
- lib/polites/convert.rb
Overview
Convert a Polites file to another format.
Instance Method Summary collapse
-
#call(filename) ⇒ String
Convert the contents of
filename
to HTML and return the result as a String. -
#initialize(parser: Polites::Parser.new, formatter: Polites::HtmlFormatter.new) ⇒ Convert
constructor
A new instance of Convert.
Constructor Details
#initialize(parser: Polites::Parser.new, formatter: Polites::HtmlFormatter.new) ⇒ Convert
Returns a new instance of Convert.
12 13 14 15 |
# File 'lib/polites/convert.rb', line 12 def initialize(parser: Polites::Parser.new, formatter: Polites::HtmlFormatter.new) @parser = parser @formatter = formatter end |