Method: IsoDoc::Function::Section#clause_title_depth

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

#clause_title_depth(node, title) ⇒ Object



48
49
50
51
52
53
54
# File 'lib/isodoc/function/section_titles.rb', line 48

def clause_title_depth(node, title)
  depth = node.ancestors("clause, annex, terms, references, " \
                         "definitions, acknowledgements, introduction, " \
                         "foreword").size + 1
  depth = title["depth"] if title && title["depth"]
  depth
end