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.
7 8 9 10 11 |
# File 'lib/prawn/markup/elements/cell.rb', line 7 def initialize(header: false, width: 'auto') super() @header = header @width = width end |
Instance Attribute Details
#header ⇒ Object (readonly)
Returns the value of attribute header.
5 6 7 |
# File 'lib/prawn/markup/elements/cell.rb', line 5 def header @header end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
5 6 7 |
# File 'lib/prawn/markup/elements/cell.rb', line 5 def width @width end |