NAME

Net::ISC::DHCPd::Config::Function - Function config parameters

DESCRIPTION

See Net::ISC::DHCPd::Config::Role for methods and attributes without documentation.

An instance from this class, comes from / will produce:

on $name_attribute_value {
    $body_attribute_value
}

SYNOPSIS

See "SYNOPSIS" in Net::ISC::DHCPd::Config.

ATTRIBUTES

name

This attribute holds a plain string, representing the name of the function. Example: "commit".

body

The body text of the function, without trailing newline at end. The function body is not parsed, so the containing text can be anything.

METHODS

BUILD

Will make sure "body" does not contain trailing newlines.

body_length

Returns the length of the function "body".

replace_body

Can search and replace parts of function "body".

append_body

Will append a string to the function "body".

prepend_body

Will prepend a string to the function "body".

slurp

This method is used by "parse" in Net::ISC::DHCPd::Config::Role, and will slurp the content of the function, instead of trying to parse the statements.

captured_to_args

See "captured_to_args" in Net::ISC::DHCPd::Config::Role.

generate

See "generate" in Net::ISC::DHCPd::Config::Role.

COPYRIGHT & LICENSE

AUTHOR

See Net::ISC::DHCPd.