| 1 | package MooseX::Meta::Role::WarnOnConflict; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | # ABSTRACT: metaclass for Moose::Meta::Role | ||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | 2 | ▶ | use Moose; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | 2 | extends 'Moose::Meta::Role'; | |||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | 2 | our $VERSION = '0.01'; | |||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||
| 10 | 3 | ▶ | override apply => sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=3 SCAR=13.3
| |||||||||||||||||||||||||||||
| 11 | 3 | my ( $self, $other, @args ) = @_; | |||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | 3 | ▶ | if ( blessed($other) && $other->isa('Moose::Meta::Class') ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
builtin::blessed($other) and $other->isa("Moose::Meta::Class")
MC/DC0%0/2
builtin::blessed($other) and $other->isa("Moose::Meta::Class")
builtin::blessed($other)
$other->isa("Moose::Meta::Class")
Truth table33%1/3
A and B
A= builtin::blessed($other)B= $other->isa("Moose::Meta::Class")
| |||||||||||||||||||||||||||||
| 14 | # already loaded | ||||||||||||||||||||||||||||
| 15 | 3 | return MooseX::Meta::Role::Application::ToClass::WarnOnConflig->new(@args) | |||||||||||||||||||||||||||
| 16 | ->apply( $self, $other ); | ||||||||||||||||||||||||||||
| 17 | } | ||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | 0 | super; | |||||||||||||||||||||||||||
| 20 | 2 | }; | |||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||
| 22 | 2 | 1; | |||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||
| 24 | __END__ | ||||||||||||||||||||||||||||