| File | /usr/local/lib/perl/5.10.0/Moose/Meta/Role/Method.pm |
| Statements Executed | 13 |
| Total Time | 0.0002182 seconds |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Role::Method::BEGIN |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Role::Method::_make_compatible_with |
| Line | Stmts. | Exclusive Time | Avg. | Code |
|---|---|---|---|---|
| 1 | ||||
| 2 | package Moose::Meta::Role::Method; | |||
| 3 | ||||
| 4 | 3 | 25µs | 8µs | use strict; # spent 8µs making 1 call to strict::import |
| 5 | 3 | 65µs | 22µs | use warnings; # spent 28µs making 1 call to warnings::import |
| 6 | ||||
| 7 | 1 | 700ns | 700ns | our $VERSION = '1.15'; |
| 8 | 1 | 22µs | 22µs | $VERSION = eval $VERSION; |
| 9 | 1 | 600ns | 600ns | our $AUTHORITY = 'cpan:STEVAN'; |
| 10 | ||||
| 11 | 3 | 100µs | 33µs | use base 'Moose::Meta::Method'; # spent 74µs making 1 call to base::import |
| 12 | ||||
| 13 | sub _make_compatible_with { | |||
| 14 | my $self = shift; | |||
| 15 | my ($other) = @_; | |||
| 16 | ||||
| 17 | # XXX: this is pretty gross. the issue here is blah blah blah | |||
| 18 | # see the comments in CMOP::Method::Meta and CMOP::Method::Wrapped | |||
| 19 | return $self unless $other->_is_compatible_with($self->_real_ref_name); | |||
| 20 | ||||
| 21 | return $self->SUPER::_make_compatible_with(@_); | |||
| 22 | } | |||
| 23 | ||||
| 24 | 1 | 4µs | 4µs | 1; |
| 25 | ||||
| 26 | __END__ | |||
| 27 | ||||
| 28 | =pod | |||
| 29 | ||||
| 30 | =head1 NAME | |||
| 31 | ||||
| 32 | Moose::Meta::Role::Method - A Moose Method metaclass for Roles | |||
| 33 | ||||
| 34 | =head1 DESCRIPTION | |||
| 35 | ||||
| 36 | This is primarily used to mark methods coming from a role | |||
| 37 | as being different. Right now it is nothing but a subclass | |||
| 38 | of L<Moose::Meta::Method>. | |||
| 39 | ||||
| 40 | =head1 BUGS | |||
| 41 | ||||
| 42 | See L<Moose/BUGS> for details on reporting bugs. | |||
| 43 | ||||
| 44 | =head1 AUTHOR | |||
| 45 | ||||
| 46 | Stevan Little E<lt>stevan@iinteractive.comE<gt> | |||
| 47 | ||||
| 48 | =head1 COPYRIGHT AND LICENSE | |||
| 49 | ||||
| 50 | Copyright 2006-2010 by Infinity Interactive, Inc. | |||
| 51 | ||||
| 52 | L<http://www.iinteractive.com> | |||
| 53 | ||||
| 54 | This library is free software; you can redistribute it and/or modify | |||
| 55 | it under the same terms as Perl itself. | |||
| 56 | ||||
| 57 | =cut |