Class: Gambas::PdfCreator
- Inherits:
-
Object
- Object
- Gambas::PdfCreator
- Defined in:
- lib/gambas.rb
Class Method Summary collapse
Class Method Details
.create(options = nil) {|pdf| ... } ⇒ Object
22 23 24 25 26 |
# File 'lib/gambas.rb', line 22 def self.create ( = nil) pdf = pdf_document() yield pdf pdf.render.html_safe end |
.pdf_document(options = nil) ⇒ Object
28 29 30 31 |
# File 'lib/gambas.rb', line 28 def self.pdf_document ( = nil) = (Gambas. || {}).merge( || {}) Prawn::Document.new() end |