Method: IsoDoc::Function::Table#tr_parse

Defined in:
lib/isodoc/function/table.rb

#tr_parse(node, out, ord, totalrows, header) ⇒ Object



100
101
102
103
104
105
106
107
108
109
# File 'lib/isodoc/function/table.rb', line 100

def tr_parse(node, out, ord, totalrows, header)
  out.tr do |r|
    node.elements.each do |td|
      attrs = make_tr_attr(td, ord, totalrows - 1, header)
      r.send td.name, **attr_code(attrs) do |entry|
        td.children.each { |n| parse(n, entry) }
      end
    end
  end
end