Class: Transmuter::Format::Html
- Inherits:
-
Object
- Object
- Transmuter::Format::Html
- Defined in:
- lib/transmuter/format/html.rb
Instance Method Summary collapse
-
#initialize(html, options = {}) ⇒ Html
constructor
A new instance of Html.
- #process ⇒ Object
- #to_pdf ⇒ Object
Constructor Details
#initialize(html, options = {}) ⇒ Html
Returns a new instance of Html.
8 9 10 11 |
# File 'lib/transmuter/format/html.rb', line 8 def initialize(html, = {}) () @html = html end |
Instance Method Details
#process ⇒ Object
19 20 21 |
# File 'lib/transmuter/format/html.rb', line 19 def process include_inline_stylesheets(syntax_highlighter) end |
#to_pdf ⇒ Object
13 14 15 16 17 |
# File 'lib/transmuter/format/html.rb', line 13 def to_pdf html = process pdf = Pdf.new(html, ) pdf.process end |