Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | """ |
||
13 | class Sub1SectionNode(HeadingNode): |
||
14 | """ |
||
15 | SDoc2 node for subsections. |
||
16 | """ |
||
17 | |||
18 | # ------------------------------------------------------------------------------------------------------------------ |
||
19 | def __init__(self, io, options, argument): |
||
20 | """ |
||
21 | Object constructor. |
||
22 | |||
23 | :param None|cleo.styles.output_style.OutputStyle io: The IO object. |
||
24 | :param dict[str,str] options: The options of this section. |
||
25 | :param str argument: The title of this section. |
||
26 | """ |
||
27 | super().__init__(io, 'subsection', options, argument) |
||
28 | |||
29 | # ------------------------------------------------------------------------------------------------------------------ |
||
30 | def get_command(self): |
||
31 | """ |
||
32 | Returns the command of this node, i.e. subsection. |
||
33 | |||
34 | :rtype: str |
||
35 | """ |
||
36 | return 'subsection' |
||
37 | |||
38 | # ------------------------------------------------------------------------------------------------------------------ |
||
39 | def get_hierarchy_level(self, parent_hierarchy_level=-1): |
||
40 | """ |
||
41 | Returns 3. |
||
42 | |||
43 | :rtype: int |
||
44 | """ |
||
45 | return 3 |
||
46 | |||
51 |