Ingy döt Net > Moos-0.30 > Moos::Role

Download:
Moos-0.30.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

Moos::Role - Simple roles for Moos.

SYNOPSIS ^

    package Milkable;
    use Moos-Role;        # note not "Moos::Role"
    has 'udders';
    sub milk { ... }

    package Cow;
    use Moos;
    with 'Milkable';

DESCRIPTION ^

Moos-Role is a small wrapper around Role::Tiny providing a few additional Moos features.

FEATURES ^

strict/warnings

Turns on strict and warnings for you.

Helpful exports

The ever useful blessed (from Scalar::Util) and confess (from Carp) are exported to your namespace.

has

Accessor generator. See Moos.

DEVELOPMENT OPTIONS ^

PERL_MOOS_XXX

By setting the environment variable, Moos will export the XXX debugging keywords.

SEE ALSO ^

AUTHORS ^

COPYRIGHT AND LICENSE ^

Copyright 2012-2014. Ingy döt Net.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html

syntax highlighting: