Filename | /2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/x86_64-linux/Moose/Meta/Role/Method/Conflicting.pm |
Statements | Executed 17 statements in 210µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 9µs | 9µs | BEGIN@3 | Moose::Meta::Role::Method::Conflicting::
1 | 1 | 1 | 9µs | 197µs | BEGIN@13 | Moose::Meta::Role::Method::Conflicting::
1 | 1 | 1 | 9µs | 14µs | BEGIN@10 | Moose::Meta::Role::Method::Conflicting::
1 | 1 | 1 | 9µs | 80µs | BEGIN@15 | Moose::Meta::Role::Method::Conflicting::
1 | 1 | 1 | 8µs | 25µs | BEGIN@11 | Moose::Meta::Role::Method::Conflicting::
0 | 0 | 0 | 0s | 0s | roles_as_english_list | Moose::Meta::Role::Method::Conflicting::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | |||||
2 | package Moose::Meta::Role::Method::Conflicting; | ||||
3 | # spent 9µs within Moose::Meta::Role::Method::Conflicting::BEGIN@3 which was called:
# once (9µs+0s) by Moose::Meta::Role::BEGIN@22 at line 5 | ||||
4 | 1 | 5µs | $Moose::Meta::Role::Method::Conflicting::AUTHORITY = 'cpan:STEVAN'; | ||
5 | 1 | 24µs | 1 | 9µs | } # spent 9µs making 1 call to Moose::Meta::Role::Method::Conflicting::BEGIN@3 |
6 | { | ||||
7 | 2 | 1µs | $Moose::Meta::Role::Method::Conflicting::VERSION = '2.0602'; | ||
8 | } | ||||
9 | |||||
10 | 3 | 18µs | 2 | 18µs | # spent 14µs (9+5) within Moose::Meta::Role::Method::Conflicting::BEGIN@10 which was called:
# once (9µs+5µs) by Moose::Meta::Role::BEGIN@22 at line 10 # spent 14µs making 1 call to Moose::Meta::Role::Method::Conflicting::BEGIN@10
# spent 5µs making 1 call to strict::import |
11 | 3 | 18µs | 2 | 43µs | # spent 25µs (8+17) within Moose::Meta::Role::Method::Conflicting::BEGIN@11 which was called:
# once (8µs+17µs) by Moose::Meta::Role::BEGIN@22 at line 11 # spent 25µs making 1 call to Moose::Meta::Role::Method::Conflicting::BEGIN@11
# spent 17µs making 1 call to warnings::import |
12 | |||||
13 | 3 | 26µs | 2 | 385µs | # spent 197µs (9+188) within Moose::Meta::Role::Method::Conflicting::BEGIN@13 which was called:
# once (9µs+188µs) by Moose::Meta::Role::BEGIN@22 at line 13 # spent 197µs making 1 call to Moose::Meta::Role::Method::Conflicting::BEGIN@13
# spent 188µs making 1 call to Sub::Exporter::__ANON__[Sub/Exporter.pm:756] |
14 | |||||
15 | 3 | 103µs | 2 | 153µs | # spent 80µs (9+72) within Moose::Meta::Role::Method::Conflicting::BEGIN@15 which was called:
# once (9µs+72µs) by Moose::Meta::Role::BEGIN@22 at line 15 # spent 80µs making 1 call to Moose::Meta::Role::Method::Conflicting::BEGIN@15
# spent 72µs making 1 call to base::import |
16 | |||||
17 | 1 | 8µs | 3 | 837µs | __PACKAGE__->meta->add_attribute('roles' => ( # spent 419µs making 1 call to Class::MOP::Mixin::HasAttributes::add_attribute
# spent 410µs making 1 call to Moose::Meta::Role::Method::Required::meta
# spent 8µs making 1 call to Class::MOP::_definition_context |
18 | reader => 'roles', | ||||
19 | required => 1, | ||||
20 | Class::MOP::_definition_context(), | ||||
21 | )); | ||||
22 | |||||
23 | sub roles_as_english_list { | ||||
24 | my $self = shift; | ||||
25 | Moose::Util::english_list( map { q{'} . $_ . q{'} } @{ $self->roles } ); | ||||
26 | } | ||||
27 | |||||
28 | 1 | 7µs | 1; | ||
29 | |||||
30 | # ABSTRACT: A Moose metaclass for conflicting methods in Roles | ||||
31 | |||||
- - | |||||
34 | =pod | ||||
35 | |||||
36 | =head1 NAME | ||||
37 | |||||
38 | Moose::Meta::Role::Method::Conflicting - A Moose metaclass for conflicting methods in Roles | ||||
39 | |||||
40 | =head1 VERSION | ||||
41 | |||||
42 | version 2.0602 | ||||
43 | |||||
44 | =head1 DESCRIPTION | ||||
45 | |||||
46 | =head1 INHERITANCE | ||||
47 | |||||
48 | C<Moose::Meta::Role::Method::Conflicting> is a subclass of | ||||
49 | L<Moose::Meta::Role::Method::Required>. | ||||
50 | |||||
51 | =head1 METHODS | ||||
52 | |||||
53 | =over 4 | ||||
54 | |||||
55 | =item B<< Moose::Meta::Role::Method::Conflicting->new(%options) >> | ||||
56 | |||||
57 | This creates a new type constraint based on the provided C<%options>: | ||||
58 | |||||
59 | =over 8 | ||||
60 | |||||
61 | =item * name | ||||
62 | |||||
63 | The method name. This is required. | ||||
64 | |||||
65 | =item * roles | ||||
66 | |||||
67 | The list of role names that generated the conflict. This is required. | ||||
68 | |||||
69 | =back | ||||
70 | |||||
71 | =item B<< $method->name >> | ||||
72 | |||||
73 | Returns the conflicting method's name, as provided to the constructor. | ||||
74 | |||||
75 | =item B<< $method->roles >> | ||||
76 | |||||
77 | Returns the roles that generated this conflicting method, as provided to the | ||||
78 | constructor. | ||||
79 | |||||
80 | =item B<< $method->roles_as_english_list >> | ||||
81 | |||||
82 | Returns the roles that generated this conflicting method as an English list. | ||||
83 | |||||
84 | =back | ||||
85 | |||||
86 | =head1 BUGS | ||||
87 | |||||
88 | See L<Moose/BUGS> for details on reporting bugs. | ||||
89 | |||||
90 | =head1 AUTHOR | ||||
91 | |||||
92 | Moose is maintained by the Moose Cabal, along with the help of many contributors. See L<Moose/CABAL> and L<Moose/CONTRIBUTORS> for details. | ||||
93 | |||||
94 | =head1 COPYRIGHT AND LICENSE | ||||
95 | |||||
96 | This software is copyright (c) 2012 by Infinity Interactive, Inc.. | ||||
97 | |||||
98 | This is free software; you can redistribute it and/or modify it under | ||||
99 | the same terms as the Perl 5 programming language system itself. | ||||
100 | |||||
101 | =cut | ||||
102 | |||||
103 | |||||
104 | __END__ |