MooseX::Role::WithOverloading::Meta::Role::Application::Composite - Roles which support overloading


MooseX-Role-WithOverloading documentation Contained in the MooseX-Role-WithOverloading distribution.

Index


Code Index:

NAME

Top

MooseX::Role::WithOverloading::Meta::Role::Application::Composite - Roles which support overloading

AUTHORS

Top

COPYRIGHT AND LICENSE

Top


MooseX-Role-WithOverloading documentation Contained in the MooseX-Role-WithOverloading distribution.

package MooseX::Role::WithOverloading::Meta::Role::Application::Composite;
BEGIN {
  $MooseX::Role::WithOverloading::Meta::Role::Application::Composite::AUTHORITY = 'cpan:FLORA';
}
BEGIN {
  $MooseX::Role::WithOverloading::Meta::Role::Application::Composite::VERSION = '0.09';
}
# ABSTRACT: Roles which support overloading

use Moose::Role;
use namespace::autoclean;

with 'MooseX::Role::WithOverloading::Meta::Role::Application';

around apply_overloading => sub {
    my ($next, $self, $composite, $other) = @_;
    for my $role (@{ $composite->get_roles }) {
        $self->$next($role, $other);
    }
};

1;

__END__