Method: IsoDoc::Function::Section#scope
- Defined in:
- lib/isodoc/function/section.rb
#scope(isoxml, out, num) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/isodoc/function/section.rb', line 48 def scope(isoxml, out, num) f = isoxml.at(ns("//clause[@type = 'scope']")) or return num out.div **attr_code(id: f["id"]) do |div| num = num + 1 clause_name(f, f&.at(ns("./title")), div, nil) f.elements.each do |e| parse(e, div) unless e.name == "title" end end num end |