Method: IsoDoc::Function::Section#clause_name

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

#clause_name(node, title, div, header_class) ⇒ Object

top level clause names



58
59
60
61
62
63
64
65
66
67
68
# File 'lib/isodoc/function/section_titles.rb', line 58

def clause_name(node, title, div, header_class)
  header_class = {} if header_class.nil?
  div.h1 **attr_code(header_class) do |h1|
    if title.is_a?(String) then h1 << title
    else
      title&.children&.each { |c2| parse(c2, h1) }
      clause_parse_subtitle(title, h1)
    end
  end
  div.parent.at(".//h1")
end