vendor/gems/prawn-0.3.0/lib/prawn/document/bounding_box.rb
# Sets Document#bounds to use the LazyBoundingBox for its bounds,
# runs the block specified by LazyBoundingBox#action,
# and then restores the original bounds of the document.
#
Sets Document#bounds to use the LazyBoundingBox for its bounds,
runs the block specified by LazyBoundingBox#action,
and then restores the original bounds of the document.
Sets Document#bounds to use the LazyBoundingBox for its bounds runs the block specified by LazyBoundingBox#action and then restores the original bounds of the document .
def draw
         @parent.mask(:y) do  
           parent_box = @parent.bounds  
           @parent.bounds = self    
           @parent.y = absolute_top
           @action.call   
           @parent.bounds = parent_box
         end
       end
def draw @parent . mask ( :y ) do parent_box = @parent . bounds @parent . bounds = self @parent . y = absolute_top @action . call @parent . bounds = parent_box end end
Sets Document#bounds to use the LazyBoundingBox for its bounds,
runs the block specified by LazyBoundingBox#action,
and then restores the original bounds of the document.
Sets Document#bounds to use the LazyBoundingBox for its bounds runs the block specified by LazyBoundingBox#action and then restores the original bounds of the document .