BoundingBox
Implements the necessary functionality to allow Document#column_box to work.
x coordinate of the left edge of the current column
# File lib/prawn/document/column_box.rb, line 70 def left_side absolute_left + (width_of_column * @current_column) end
Moves to the next column or starts a new page if currently positioned at the rightmost column.
# File lib/prawn/document/column_box.rb, line 83 def move_past_bottom @current_column = (@current_column + 1) % @columns @document.y = @y if 0 == @current_column @document.start_new_page end end
x co-orordinate of the right edge of the current column
# File lib/prawn/document/column_box.rb, line 76 def right_side columns_from_right = @columns - (1 + @current_column) absolute_right - (width_of_column * columns_from_right) end
Generated with the Darkfish Rdoc Generator 2.