class Prawn::Table::Cell::SpanDummy
@private
group.
A Cell object used to represent all but the topmost cell in a span
def avg_spanned_min_width
def avg_spanned_min_width @master_cell.avg_spanned_min_width end
def background_color
def background_color @master_cell.background_color end
def border_bottom_color=(val)
def border_bottom_color=(val) @master_cell.border_bottom_color = val if bottommost? end
def border_bottom_width=(val)
def border_bottom_width=(val) @master_cell.border_bottom_width = val if bottommost? end
def border_right_color=(val)
def border_right_color=(val) @master_cell.border_right_color = val if rightmost? end
def border_right_width=(val)
def border_right_width=(val) @master_cell.border_right_width = val if rightmost? end
def bottommost?
Are we on the bottom border of the span?
def bottommost? @row == @master_cell.row + @master_cell.rowspan - 1 end
def draw_borders(pt)
Dummy cells have nothing to draw.
def draw_borders(pt) end
def draw_bounded_content(pt)
Dummy cells have nothing to draw.
def draw_bounded_content(pt) end
def initialize(pdf, master_cell)
def initialize(pdf, master_cell) super(pdf, [0, pdf.cursor]) @master_cell = master_cell @padding = [0, 0, 0, 0] end
def natural_content_height
By default, a span dummy will never increase the height demand.
def natural_content_height 0 end
def natural_content_width
By default, a span dummy will never increase the width demand.
def natural_content_width 0 end
def padding_bottom=(val)
def padding_bottom=(val) @master_cell.padding_bottom = val if bottommost? end
def padding_right=(val)
def padding_right=(val) @master_cell.padding_right = val if rightmost? end
def rightmost?
Are we on the right border of the span?
def rightmost? @column == @master_cell.column + @master_cell.colspan - 1 end