| MooseX-AttributeIndexes documentation | Contained in the MooseX-AttributeIndexes distribution. |
MooseX::AttributeIndexes::Meta::Role::ApplicationToRole
version 1.0.1
This software is copyright (c) 2011 by Kent Fredric.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| MooseX-AttributeIndexes documentation | Contained in the MooseX-AttributeIndexes distribution. |
use strict; use warnings; package MooseX::AttributeIndexes::Meta::Role::ApplicationToRole; BEGIN { $MooseX::AttributeIndexes::Meta::Role::ApplicationToRole::VERSION = '1.0.1'; } use Moose::Role; around apply => sub { my $orig = shift; my $self = shift; my ($role1, $role2) = @_; $role2 = Moose::Util::MetaRole::apply_metaroles( for => $role2, role_metaroles => { application_to_class => [ 'MooseX::AttributeIndexes::Meta::Role::ApplicationToClass', ], application_to_role => [ 'MooseX::AttributeIndexes::Meta::Role::ApplicationToRole', ], } ); $self->$orig( $role1, $role2 ); }; no Moose::Role; 1; __END__