Skip to content

Commit

Permalink
Document Mu.WHY
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Cochrane committed Feb 22, 2015
1 parent e01b995 commit f8522bf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lib/Type/Mu.pod
Expand Up @@ -143,6 +143,28 @@ return the same return value from C<WHICH>.
Returns an C<Int> representing the memory address of the object.
=head2 method WHY
multi method WHY()
Returns the attached Pod value. For instance,
=for code
sub cast(Spell $s)
#= Initiate a specified spell normally
#= (do not use for class 7 spells)
{
do-raw-magic($s);
}
say &cast.WHY;
prints
Initiate a specified spell normally (do not use for class 7 spells)
See the L<documentation specification|http://design.perl6.org/S26.html> for
details about attaching Pod to variables, classes, functions, methods, etc.
=head2 trait is export
multi sub trait_mod:<is>(Mu:U \type, :$export!)
Expand Down

0 comments on commit f8522bf

Please sign in to comment.