Method: IsoDoc::WordFunction::Body#colgroup

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

#colgroup(node, table) ⇒ Object



59
60
61
62
63
64
65
66
# File 'lib/isodoc/word_function/table.rb', line 59

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