Class: Markbridge::AST::TableCell
- Defined in:
- lib/markbridge/ast/table.rb
Overview
Represents a table cell (td or th).
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#header? ⇒ Boolean
Check if this is a header cell.
-
#initialize(header: false) ⇒ TableCell
constructor
Create a new table cell.
Methods inherited from Element
Constructor Details
#initialize(header: false) ⇒ TableCell
Create a new table cell.
54 55 56 57 |
# File 'lib/markbridge/ast/table.rb', line 54 def initialize(header: false) super() @header = header end |
Instance Method Details
#header? ⇒ Boolean
Check if this is a header cell.
62 63 64 |
# File 'lib/markbridge/ast/table.rb', line 62 def header? @header end |