MooseX::AttributeIndexes::Meta::Role::Composite - MooseX::AttributeIndexes::Meta::Role::Composite documentation


MooseX-AttributeIndexes documentation Contained in the MooseX-AttributeIndexes distribution.

Index


Code Index:

NAME

Top

MooseX::AttributeIndexes::Meta::Role::Composite

VERSION

Top

version 1.0.1

AUTHORS

Top

COPYRIGHT AND LICENSE

Top


MooseX-AttributeIndexes documentation Contained in the MooseX-AttributeIndexes distribution.

use strict;
use warnings;

package MooseX::AttributeIndexes::Meta::Role::Composite;
BEGIN {
  $MooseX::AttributeIndexes::Meta::Role::Composite::VERSION = '1.0.1';
}
use Moose::Role;

around apply_params => sub {
    my $orig = shift;
    my $self = shift;

    $self->$orig(@_);

    $self = Moose::Util::MetaRole::apply_metaroles(
        for            => $self,
        role_metaroles => {
            application_to_class => ['MooseX::AttributeIndexes::Meta::Role::ApplicationToClass'],
            application_to_role => ['MooseX::AttributeIndexes::Meta::Role::ApplicationToRole'],
        },
    );

    return $self;
};

no Moose::Role;

1;

__END__