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
66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/isodoc/function/section_titles.rb', line 66 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 |