NAME

MooseX::AttributeDocumented - Add Documented trait to all to attributes

Requires Perl 5.10.1+ Travis status Distribution kwalitee CPAN Testers result coverage 100.0%

VERSION

Version 0.1004, released 2019-01-30.

SYNOPSIS

    package The::Class;

    use Moose;
    use MooseX::AttributeDocumented;

    has gears => (
        is => 'ro',
        isa => 'Int',
        default => 21,
        documentation => 'Number of gears on the bike',
        documentation_order => 2,
    );
    has has_brakes => (
        is => 'ro',
        isa => 'Bool',
        default => 1,
        documentation => 'Does the bike have brakes?',
        documentation_alts => {
            0 => 'Hopefully a track bike',
            1 => 'Always nice to have',
        },
    );

DESCRIPTION

Adds the Documented trait to all attributes in the class.

SEE ALSO

SOURCE

https://github.com/Csson/p5-MooseX-AttributeDocumented

HOMEPAGE

https://metacpan.org/release/MooseX-AttributeDocumented

AUTHOR

Erik Carlsson <info@code301.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Erik Carlsson.

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