Stevan Little > mop-0.03-TRIAL > mop::manual::details::attributes

Download:
mop-0.03-TRIAL.tar.gz

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

mop::manual::details::attributes - A manual for p5-mop

DESCRIPTION ^

TODO

GRAMMAR ^

Attributes in the p5-mop are defined in the following way:

  has SCALAR
    ?(meta NAME)
    ?(is TRAIT ?(, TRAIT)*)
    ?(= EXPR);

The has keyword is followed by a scalar variable name.

Which is optionally followed by the meta keyword that is followed by the name of the attribute metaclass you wish to be used in constructing this attribute.

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 attribute.

Which is optionally followed by the assignment operator (=) which is then followed by a perl expression.

An attribute definition must be terminated by a semicolon.

BUGS ^

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.

Git Repository

Issue Tracker

AUTHOR ^

Stevan Little <stevan.little@iinteractive.com>

Jesse Luehrs <doy@tozt.net>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: