--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: A LazyBoundingBox is simply a BoundingBox with an action tied to it to be executed later. The lazy_bounding_box method takes the same arguments as bounding_box, but returns a LazyBoundingBox object instead of executing the code block directly.
- !ruby/struct:SM::Flow::P 
  body: You can then call LazyBoundingBox#draw at any time (or multiple times if you wish), and the contents of the block will then be run. This can be useful for assembling repeating page elements or reusable components.
- !ruby/struct:SM::Flow::VERB 
  body: " file = &quot;lazy_bounding_boxes.pdf&quot;\n Prawn::Document.generate(file, :skip_page_creation =&gt; true) do\n   point = [bounds.right-50, bounds.bottom + 25]\n   page_counter = lazy_bounding_box(point, :width =&gt; 50) do\n     text &quot;Page: #{page_count}&quot;\n   end\n\n   10.times do\n    start_new_page\n     text &quot;Some text&quot;\n     page_counter.draw\n   end\n end\n"
full_name: Prawn::Document#lazy_bounding_box
is_singleton: false
name: lazy_bounding_box
params: (*args,&block)
visibility: public
