| 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::ApplicationToClass; | ||||||||||
| 11 | { | ||||||||||
| 12 | 6 | $MooseX::Attribute::LazyInflator::Meta::Role::ApplicationToClass::VERSION = '2.2.2'; | |||||||||
| 13 | } | ||||||||||
| 14 | 6 | ▶ | use Moose::Role; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | 6 | ▶ | use MooseX::Attribute::LazyInflator::Role::Class; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | |||||||||||
| 17 | 4 | ▶ | around apply => sub { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.0
| |||||||||||
| 18 | 4 | my $orig = shift; | |||||||||
| 19 | 4 | my $self = shift; | |||||||||
| 20 | 4 | my $role = shift; | |||||||||
| 21 | 4 | my $class = shift; | |||||||||
| 22 | 4 | ▶ | $class = | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | Moose::Util::MetaRole::apply_metaroles( | ||||||||||
| 24 | for => $class, | ||||||||||
| 25 | class_metaroles => { | ||||||||||
| 26 | constructor => [ | ||||||||||
| 27 | 'MooseX::Attribute::LazyInflator::Meta::Role::Method::Constructor' | ||||||||||
| 28 | ], | ||||||||||
| 29 | } ) if ( Moose->VERSION < 1.9900 ); | ||||||||||
| 30 | |||||||||||
| 31 | 4 | Moose::Util::MetaRole::apply_base_class_roles( | |||||||||
| 32 | for => $class->name, | ||||||||||
| 33 | roles => ['MooseX::Attribute::LazyInflator::Role::Class'] | ||||||||||
| 34 | ); | ||||||||||
| 35 | |||||||||||
| 36 | 4 | $self->$orig( $role, $class ); | |||||||||
| 37 | 6 | }; | |||||||||
| 38 | |||||||||||
| 39 | 6 | 1; | |||||||||
| 40 | |||||||||||
| 41 | __END__ | ||||||||||