Class: Prawn::Markup::Elements::Cell

Inherits:
Item
  • Object
show all
Defined in:
lib/prawn/markup/elements/cell.rb

Instance Attribute Summary collapse

Attributes inherited from Item

#nodes

Instance Method Summary collapse

Methods inherited from Item

#single?

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

#headerObject (readonly)

Returns the value of attribute header.



7
8
9
# File 'lib/prawn/markup/elements/cell.rb', line 7

def header
  @header
end

#widthObject (readonly)

Returns the value of attribute width.



7
8
9
# File 'lib/prawn/markup/elements/cell.rb', line 7

def width
  @width
end