Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
1 | """ |
||
13 | class Sub2SectionNode(HeadingNode): |
||
14 | """ |
||
15 | SDoc2 node for sub-subsections. |
||
16 | """ |
||
17 | # ------------------------------------------------------------------------------------------------------------------ |
||
18 | def __init__(self, options, argument): |
||
19 | """ |
||
20 | Object constructor. |
||
21 | |||
22 | :param dict[str,str] options: The options of this section. |
||
23 | :param str argument: The title of this section. |
||
24 | """ |
||
25 | super().__init__('sub2section', options, argument) |
||
26 | |||
27 | # ------------------------------------------------------------------------------------------------------------------ |
||
28 | def get_command(self): |
||
29 | """ |
||
30 | Returns the command of this node, i.e. sub2section. |
||
31 | |||
32 | :rtype: str |
||
33 | """ |
||
34 | return 'sub2section' |
||
35 | |||
36 | # ------------------------------------------------------------------------------------------------------------------ |
||
37 | def get_hierarchy_level(self, parent_hierarchy_level=-1): |
||
38 | """ |
||
39 | Returns 4. |
||
40 | |||
41 | :rtype: int |
||
42 | """ |
||
43 | return 4 |
||
44 | |||
49 |