Module: PDFGen::DivContainer
Instance Method Summary collapse
Instance Method Details
#div(style = nil, &initialization_block) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/containers/div_container.rb', line 5 def div(style = nil, &initialization_block) div = Div.new(self) div.width = self.av_width div.set_properties style unless style.nil? div.instance_eval(&initialization_block) if initialization_block self.add_region(div) end |