Method: IsoDoc::XrefGen::Sections#section_names
- Defined in:
- lib/isodoc/xref/xref_sect_gen.rb
#section_names(clause, num, lvl) ⇒ Object
141 142 143 144 145 146 147 148 149 150 |
# File 'lib/isodoc/xref/xref_sect_gen.rb', line 141 def section_names(clause, num, lvl) unnumbered_section_name?(clause) and return num num.increment(clause) section_name_anchors(clause, num.print, lvl) clause.xpath(ns(SUBCLAUSES)) .each_with_object(Counter.new(0, prefix: "#{num.print}.")) do |c, i| section_names1(c, i.increment(c).print, lvl + 1) end num end |