Method: Prawn::Table::Cell#content_width
- Defined in:
- lib/prawn/table/cell.rb
#content_width ⇒ Object
Returns the width of the bare content in the cell, excluding padding.
281 282 283 284 285 286 287 |
# File 'lib/prawn/table/cell.rb', line 281 def content_width if defined?(@width) && @width # manually set return @width - padding_left - padding_right end natural_content_width end |