lib/prawn/text/box.rb in prawn-0.14.0 vs lib/prawn/text/box.rb in prawn-0.15.0

- old
+ new

@@ -9,10 +9,11 @@ require_relative "formatted/box" module Prawn module Text + # @group Stable API # Draws the requested text into a box. When the text overflows # the rectangle, you shrink to fit, or truncate the text. Text # boxes are independent of the document y position. # @@ -118,9 +119,11 @@ Text::Box.new(string, options) end box.render end + + # @group Experimental API # 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