The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

MooseX::Role::ConstructorRoleApplication - apply roles during construction

VERSION

Version 0.01

SYNOPSIS

Quick summary of what the module does.

Perhaps a little code snippet.

    package Foo;
    use Moose;
    with 'Ozlotteries::Role::ConstructorRoleApplication';

    # apply My::Role and My::OtherRole to instances of foo
    my $foo = Foo->new(apply => ['My::Role', 'My::OtherRole']);

DESCRIPTION

Adds the apply argument to classes into which this role is composed. The value must be an array reference of names of roles to apply to the new instance.

It does not apply the roles to the class itself, so other instances may be constructed without the roles.

AUTHOR

Fraser Tweedale, <frasert at jumbolotteries.com>

BUGS

Please report any bugs or feature requests to bug-moosex-role-constructorroleapplication at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooseX-Role-ConstructorRoleApplication. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc MooseX::Role::ConstructorRoleApplication

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright 2011 Benon Technologies Pty Ltd

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.