Generally, one would use the Prawn::Text#text_box convenience method. However, using Text::Box.new in conjunction with render(:dry_run=> true) enables one to do look-ahead calculations prior to placing text on the page, or to determine how much vertical space was consumed by the printed text
Generated with the Darkfish Rdoc Generator 2.