Method: PDFGen::Caption#initialize

Defined in:
lib/caption.rb

#initialize(parent) ⇒ Caption

Returns a new instance of Caption.



8
9
10
11
12
13
14
15
16
17
# File 'lib/caption.rb', line 8

def initialize(parent)
super

@text = ""
@template = @text
@justification = :left
@bold = false
@font_size = document.pdf.font_size
self.paddings = 0.2.cm
end