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