NAME
Net::ISC::DHCPd::Config::Role - Generic config methods and attributes
SYNOPSIS
See Net::ISC::DHCPd::Config for synopsis.
OBJECT ATTRIBUTES
parent
The parent node in the config tree.
root
The root node in the config tree.
depth
How far this node is from the root node.
children
List of possible child nodes.
regex
Regex to match for the node to be added.
endpoint
Regex to search for before ending the current node block.
Will not be used if the node does not have any possible children.
METHODS
parse
$int = $self->parse;
Parses a current node recursively. Does this by reading line by line from $self->root->filehandle, and use the rules from the possible child elements and endpoint.
captured_to_args
$hash_ref = $self->captured_to_args(@list);
Called when a regex matches, with a list of captured strings.
captured_endpoint
$self->captured_endpoint(@list)
Called when a endpoint matches, with a list of captured strings.
create_children
My::Class->create_children(@classnames)
This method is used internally to create extra attributes in classes and construct the children attribute.
generate_config_from_children
$config_text = $self->generate_config_from_children;
Loops all child node and calls generate().
AUTHOR
See Net::ISC::DHCPd.