Method: RTF::TableCellNode#top_border_width=
- Defined in:
- lib/rtf/node.rb
#top_border_width=(width) ⇒ Object
This method assigns a border width to the top side of a table cell. Negative values are ignored and a value of 0 switches the border off.
Parameters
- width
-
The new border width setting.
843 844 845 846 847 848 849 850 |
# File 'lib/rtf/node.rb', line 843 def top_border_width=(width) size = width == nil ? 0 : width if size > 0 @borders[0] = size.to_i else @borders[0] = nil end end |