Class: RubyPdf::PdfGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_pdf.rb

Class Method Summary collapse

Class Method Details

.generate(html) ⇒ Object



8
9
10
11
# File 'lib/ruby_pdf.rb', line 8

def self.generate(html)
  kit = PDFKit.new(html)
  kit.to_pdf
end