Method: PDFGen::Composite#render

Defined in:
lib/modules/composite.rb

#render(pos, av_height, test = false) ⇒ Object

renders specified span at the specified position returns real position that caption was generated on



43
44
45
46
47
48
49
50
# File 'lib/modules/composite.rb', line 43

def render(pos,av_height, test = false)
  if av_height >= self.height
    render_regions(pos[0],pos[1], test)
    [self.height, true]
  else
    [0, false]
  end
end