vendor/gems/prawn-layout-0.3.2/lib/prawn/layout/page.rb
# A bounding box with the same dimensions of its parents, minus a margin
# on all sides
#
A bounding box with the same dimensions of its parents, minus a margin
on all sides
A bounding box with the same dimensions of its parents minus a margin on all sides
def padded_box(margin, &block)
      bounding_box [bounds.left + margin, bounds.top - margin],
        :width  => bounds.width - (margin * 2), 
        :height => bounds.height - (margin * 2), &block 
    end
def padded_box ( margin , & block ) bounding_box [ bounds . left + margin , bounds . top - margin ] , :width => bounds . width - ( margin * 2 ) , :height => bounds . height - ( margin * 2 ) , & block end
A bounding box with the same dimensions of its parents, minus a margin
on all sides
A bounding box with the same dimensions of its parents minus a margin on all sides
margin
<not_specific>
block
<not_specific>