Method: IsoDoc::Function::Table#tr_parse

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

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



126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/isodoc/function/table.rb', line 126

def tr_parse(node, out, ord, totalrows, header)
  c = node.parent.parent["class"]
  bordered = %w(modspec).include?(c) || !c
  out.tr do |r|
    node.elements.each do |td|
      attrs = make_tr_attr(td, ord, totalrows - 1, header, bordered)
      r.send td.name, **attr_code(attrs) do |entry|
        td.children.each { |n| parse(n, entry) }
      end
    end
  end
end