7.3.2.1.6. DispatcherDirective¶
-
class
DispatcherDirective
(name, arguments, options, content, lineno, content_offset, *args, **kwargs)[source]¶ Methods
__init__
Initialize self. add_name
Append self.options[‘name’] to node[‘names’] if it exists. assert_has_content
Throw an ERROR-level DirectiveError if the directive doesn’t have contents. debug
directive_error
Return a DirectiveError suitable for being thrown as an exception. error
info
run
severe
warning
-
__init__
(name, arguments, options, content, lineno, content_offset, *args, **kwargs)[source]¶ Initialize self. See help(type(self)) for accurate signature.
Attributes
config
Reference to the Config
object.env
Reference to the BuildEnvironment
object.final_argument_whitespace
has_content
optional_arguments
required_arguments
-