Class: Transmuter::Format::Html

Inherits:
Object
  • Object
show all
Defined in:
lib/transmuter/format/html.rb

Instance Method Summary collapse

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, options = {})
  parse_options(options)
  @html = html
end

Instance Method Details

#processObject



19
20
21
# File 'lib/transmuter/format/html.rb', line 19

def process
  include_inline_stylesheets(syntax_highlighter)
end

#to_pdfObject



13
14
15
16
17
# File 'lib/transmuter/format/html.rb', line 13

def to_pdf
  html = process
  pdf = Pdf.new(html, get_options)
  pdf.process
end