mop::manual::details::methods - A manual for p5-mop
Method in the p5-mop are defined in the following way:
method NAME ?( '(' VARIABLE ?(= EXPR) ?(, VARIABLE ?(= EXPR))* ')' ) ?(is TRAIT ?(, TRAIT)*) BLOCK
method keyword is followed by name.
Which is optionally followed by a list of method parameters wrapped in parentheses. Method parameters are simple variables optionally followed by the assignment operator (
=) which is then followed by a perl expression.
Which is optionally followed by the
is keyword that is followed by a comma separated list of traits you wish to be applied to your method.
After this comes a block, within which you can define the body of the method.
Since this module is still under development we would prefer to not use the RT bug queue and instead use the built in issue tracker on Github.
Stevan Little <firstname.lastname@example.org>
Jesse Luehrs <email@example.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.