class Prawn::Table::Cell
def border_width=(width)
* a four-element array [top, right, bottom, left]
* a three-element array [top, horizontal, bottom]
* a two-element array [vertical, horizontal]
* an integer (sets all widths)
Sets border widths on this cell. The argument can be one of:
def border_width=(width) @border_widths = case when width.nil? ["000000"] * 4 when Numeric === width # all widths [width, width, width, width] when width.length == 2 # vert, horiz [width[0], width[1], width[0], width[1]] when width.length == 3 # top, horiz, bottom [width[0], width[1], width[2], width[1]] when width.length == 4 # top, right, bottom, left [width[0], width[1], width[2], width[3]] else raise ArgumentError, ":border_width must be a string " + "or an array [v,h] or [t,r,b,l]" end end