NAME
Net::ISC::DHCPd::Config::Include - Hold content of included file
DESCRIPTION
See Net::ISC::DHCPd::Config::Role for methods and attributes without documentation.
An instance from this class, comes from / will produce:
include "$file_attribute_value";
Example:
my $include = $config->includes->[0];
$include->parse;
SYNOPSIS
See "SYNOPSIS" in Net::ISC::DHCPd::Config.
ATTRIBUTES
generate_with_include
This attribute holds a boolean value. "generate" will result in
include "path/from/file/attribute";
when false, and the included config if true. This attribute is false by default.
Example: $include->generate_with_include(1); $include->generate;
METHODS
parse
This around method modifier will stop the parser when parsing recursively, which will require the user to manually parse the included files from the config. Reason for this is that the parse()
method returns the number of lines in a single file. and counting lines from included files will break this behaviour.
See also "parse" in Net::ISC::DHCPd::Config::Role and "SYNOPSIS" in Net::ISC::DHCPd::Config.
captured_to_args
See "captured_to_args" in Net::ISC::DHCPd::Config::Role.
generate
This method can either result in include ...;
line or the whole config of the included file. See "generate_with_include" for how to control the behaviour.
See also "generate" in Net::ISC::DHCPd::Config::Role.
COPYRIGHT & LICENSE
AUTHOR
See Net::ISC::DHCPd.