class Prawn::Text::Box

Text box.

Generally, one would use the {Prawn::Text#text_box} convenience method. However, using {Prawn::Text::Box#initialize Box.new} in conjunction with ‘render(dry_run: true)` enables one to do calculations prior to placing text on the page, or to determine how much vertical space was consumed by the printed text.