Total Complexity | 5 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | """ |
||
13 | class TitleNode(Node): |
||
14 | """ |
||
15 | Node for title in sdoc document. |
||
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 the title. |
||
25 | :param str argument: |
||
26 | """ |
||
27 | super().__init__(io, 'title', options, argument) |
||
28 | |||
29 | # ------------------------------------------------------------------------------------------------------------------ |
||
30 | def get_command(self): |
||
31 | """ |
||
32 | Returns the command of this node, i.e. title. |
||
33 | |||
34 | :rtype: str |
||
35 | """ |
||
36 | return 'title' |
||
37 | |||
38 | # ------------------------------------------------------------------------------------------------------------------ |
||
39 | def get_hierarchy_level(self, parent_hierarchy_level=-1): |
||
40 | """ |
||
41 | Returns 0. |
||
42 | |||
43 | :rtype: int |
||
44 | """ |
||
45 | return 0 |
||
46 | |||
47 | # ------------------------------------------------------------------------------------------------------------------ |
||
48 | def is_block_command(self): |
||
49 | """ |
||
50 | Returns False. |
||
51 | |||
52 | :rtype: bool |
||
53 | """ |
||
54 | return False |
||
55 | |||
56 | # ------------------------------------------------------------------------------------------------------------------ |
||
57 | def is_inline_command(self): |
||
58 | """ |
||
59 | Returns True. |
||
60 | |||
61 | :rtype: bool |
||
62 | """ |
||
63 | return True |
||
64 | |||
67 |