method parse-definition-header
Documentation for method parse-definition-header assembled from the following types:
class Documentable::Primary
(Documentable::Primary) method parse-definition-header
Defined as
method parse-definition-header(Pod::Heading : --> Hash)
This method takes a Pod::Heading element and returns its metadata in a Hash object.
This returned Hash follow this format:
%(name => ...kind => ...subkinds => ...categories => ...)
For this to happen, the Pod::Heading object must verify one of this two conditions:
Must follow the format:
=headnWhere
nis a number from 1 to 6. In this case,subkindsandcategorieskeys are set to the meta part ofX<>, if possible.kindkey is set toKind::Syntaxandnamewill be set to the second element of the meta part, or to the first one if there's only one.Returns a non-empty match with Documentable::Heading::Grammar.
That means, if we have the following heading:
=head2 The infix fooThen the string
The infix foowill be passed to the grammar, which will use Documentable::Heading::Actions to set the returnedHash.