mop::manual::details::methods - A manual for p5-mop
TODO
Method in the p5-mop are defined in the following way:
method NAME ?( '(' VARIABLE ?(= EXPR) ?(, VARIABLE ?(= EXPR))* ')' ) ?(is TRAIT ?(, TRAIT)*) BLOCK
The method keyword is followed by name.
method
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.
is
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 <stevan.little@iinteractive.com>
Jesse Luehrs <doy@tozt.net>
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.
To install mop, copy and paste the appropriate command in to your terminal.
cpanm
cpanm mop
CPAN shell
perl -MCPAN -e shell install mop
For more information on module installation, please visit the detailed CPAN module installation guide.