class Paru::PandocFilter::TableEnd
A TableEnd
node is the base class for the TableHead
and TableFoot
nodes. It has attributes and one or more rows.
@!attribute attr
@return Attr
@!attribute rows
@return [Row]
Attributes
Public Class Methods
Source
# File lib/paru/filter/table_end.rb, line 39 def initialize(contents) @attr = Attr.new contents[0] super [] contents[1].each do |row| @children.push Row.new row end end
Create a new TableEnd
based on the contents
@param contents [Array]
Calls superclass method
Public Instance Methods
Source
# File lib/paru/filter/table_end.rb, line 54 def ast_contents() [ @attr.to_ast, @children.map {|row| row.to_ast}, ] end
The AST contents of this Table
node
@return [Array]