mop::manual::details::classes - A manual for p5-mop
TODO
Classes in the p5-mop are defined in the following way:
class NAME ?(extends NAME) ?(with NAME ?(, NAME)*) ?(meta NAME) ?(is TRAIT ?(, TRAIT)*) BLOCK
The class keyword is followed by a name.
class
Which is optionally followed by the extends keyword that is followed by the name of the class you wish to subclass.
extends
Which is optionally followed by the with keyword that is followed by a comma separated list of the names of the roles you wish to be composed into your class.
with
Which is optionally followed by the meta keyword that is followed by the name of the metaclass you wish to be used in constructing this class.
meta
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 class.
is
After this comes a block, within which you can define methods and attributes (refer to those docs for more info).
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-2014 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.