Method: IsoDoc::Function::Table#colgroup

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

#colgroup(node, table) ⇒ Object



66
67
68
69
70
71
72
73
# File 'lib/isodoc/function/table.rb', line 66

def colgroup(node, table)
  colgroup = node.at(ns("./colgroup")) or return
  table.colgroup do |cg|
    colgroup.xpath(ns("./col")).each do |c|
      cg.col style: "width: #{c['width']};"
    end
  end
end