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.
48 49 50 51 |
# File 'lib/markbridge/ast/table.rb', line 48 def initialize(header: false) super() @header = header end |
Instance Method Details
#header? ⇒ Boolean
Check if this is a header cell.
56 57 58 |
# File 'lib/markbridge/ast/table.rb', line 56 def header? @header end |