Class: Prawn::Markup::Elements::Cell
- Defined in:
- lib/prawn/markup/elements/cell.rb
Instance Attribute Summary collapse
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Attributes inherited from Item
Instance Method Summary collapse
-
#initialize(header: false, width: 'auto') ⇒ Cell
constructor
A new instance of Cell.
Methods inherited from Item
Constructor Details
#initialize(header: false, width: 'auto') ⇒ Cell
Returns a new instance of Cell.
9 10 11 12 13 |
# File 'lib/prawn/markup/elements/cell.rb', line 9 def initialize(header: false, width: 'auto') super() @header = header @width = width end |
Instance Attribute Details
#header ⇒ Object (readonly)
Returns the value of attribute header.
7 8 9 |
# File 'lib/prawn/markup/elements/cell.rb', line 7 def header @header end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
7 8 9 |
# File 'lib/prawn/markup/elements/cell.rb', line 7 def width @width end |