Combined from primary sources listed below.
See primary docmentation in context for method WHY.
multi method WHY(Mu: --> Pod::Block::Declarator)
Returns the attached Pod::Block::Declarator.
For instance:
#| Initiate a specified spell normally
sub cast(Spell $s) {
do-raw-magic($s);
}
#= (do not use for class 7 spells)
say &cast.WHY;
# OUTPUT: «Initiate a specified spell normally(do not use for class 7 spells)»
See Pod declarator blocks for details about attaching Pod to variables, classes, functions, methods, etc.
See primary docmentation in context for method WHY.
See primary docmentation in context for method WHY.
with $target.WHY {
say "leading: $_.leading()";
say "trailing: $_.trailing()";
}
Returns the RakuAST::Doc::Declarator object containing the declarator documentation, if any.