| 1 | # | ||
| 2 | # This file is part of MooseX-Attribute-Deflator | ||
| 3 | # | ||
| 4 | # This software is Copyright (c) 2012 by Moritz Onken. | ||
| 5 | # | ||
| 6 | # This is free software, licensed under: | ||
| 7 | # | ||
| 8 | # The (three-clause) BSD License | ||
| 9 | # | ||
| 10 | package MooseX::Attribute::LazyInflator::Meta::Role::ApplicationToRole; | ||
| 11 | { | ||
| 12 | 6 | $MooseX::Attribute::LazyInflator::Meta::Role::ApplicationToRole::VERSION = '2.2.2'; | |
| 13 | } | ||
| 14 | 6 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | 1 | ▶ | around apply => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 17 | 1 | my $orig = shift; | |
| 18 | 1 | my $self = shift; | |
| 19 | 1 | my $role = shift; | |
| 20 | 1 | my $class = shift; | |
| 21 | 1 | $class = | |
| 22 | Moose::Util::MetaRole::apply_metaroles( | ||
| 23 | for => $class, | ||
| 24 | role_metaroles => { | ||
| 25 | application_to_class => [ | ||
| 26 | 'MooseX::Attribute::LazyInflator::Meta::Role::ApplicationToClass' | ||
| 27 | ], | ||
| 28 | } ); | ||
| 29 | 1 | $self->$orig( $role, $class ); | |
| 30 | 6 | }; | |
| 31 | |||
| 32 | 6 | 1; | |
| 33 | |||
| 34 | __END__ | ||