class Paru::PandocFilter::Row
A Row
node represents a row in a table’s head or body
@!attribute attr
@return Attr
@!attribute cells
@return [Block]
Attributes
Public Class Methods
Source
# File lib/paru/filter/row.rb, line 39 def initialize(contents = []) @attr = Attr.new contents[0] super [] contents[1].each do |cell| @children.push Cell.new cell end end
Create a new Row
based on the row_data
@param contents [Array = []] the contents of
this Row node
Calls superclass method
Public Instance Methods
Source
# File lib/paru/filter/row.rb, line 57 def ast_contents [ @attr.to_ast, @children.map {|child| child.to_ast} ] end
The AST contents of this Row
@return [Array]
Source
# File lib/paru/filter/row.rb, line 50 def cells() @children end
The cells of this row
@return [Array<Cell>]