Class: Markbridge::AST::TableRow

Inherits:
Element show all
Defined in:
lib/markbridge/ast/table.rb

Overview

Represents a table row containing cells.

Examples:

row = AST::TableRow.new
row << AST::TableCell.new

Instance Attribute Summary

Attributes inherited from Element

#children

Instance Method Summary collapse

Methods inherited from Element

#initialize

Constructor Details

This class inherits a constructor from Markbridge::AST::Element

Instance Method Details

#<<(child) ⇒ Object

See Table#<< — same whitespace skip for ‘<tr>` / `<td>` gaps.



28
29
30
31
32
# File 'lib/markbridge/ast/table.rb', line 28

def <<(child)
  return self if child.instance_of?(Text) && child.text.strip.empty?

  super
end