class Sablon::HTMLConverter::TableRow

Converts html table rows into wordML table rows

Constants

PROPERTIES

Public Class Methods

new(env, node, properties) click to toggle source
Calls superclass method Sablon::HTMLConverter::Node::new
# File lib/sablon/html/ast.rb, line 357
def initialize(env, node, properties)
  super
  properties = self.class.process_properties(properties)
  @properties = NodeProperties.table_row(properties)
  #
  trans_props = transferred_properties
  @children = ASTBuilder.html_to_ast(env, node.children, trans_props)
  @children = Collection.new(@children)
end

Public Instance Methods

accept(visitor) click to toggle source
Calls superclass method Sablon::HTMLConverter::Node#accept
# File lib/sablon/html/ast.rb, line 371
def accept(visitor)
  super
  @children.accept(visitor)
end
inspect() click to toggle source
# File lib/sablon/html/ast.rb, line 376
def inspect
  "<TableRow{#{@properties.inspect}}: #{@children.inspect}>"
end
to_docx() click to toggle source
Calls superclass method Sablon::HTMLConverter::Node#to_docx
# File lib/sablon/html/ast.rb, line 367
def to_docx
  super('w:tr')
end

Private Instance Methods

children_to_docx() click to toggle source
# File lib/sablon/html/ast.rb, line 382
def children_to_docx
  @children.to_docx
end