X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FRole%2FMethod.pm;h=fd38e376201a47b4f9df56fa4c3eebfd59742f7b;hb=ee05962b4ec91f86a0dc19ceddb869ca4e609a67;hp=017a9caba99076ccdb9b0b374f1a6d07230453a1;hpb=19fabdd362b0d39023e2359b59701c4fc42247de;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Role/Method.pm b/lib/Moose/Meta/Role/Method.pm index 017a9ca..fd38e37 100644 --- a/lib/Moose/Meta/Role/Method.pm +++ b/lib/Moose/Meta/Role/Method.pm @@ -4,44 +4,35 @@ package Moose::Meta::Role::Method; use strict; use warnings; -our $VERSION = '0.52'; -our $AUTHORITY = 'cpan:STEVAN'; +use base 'Moose::Meta::Method'; -use base 'Class::MOP::Method'; +sub _make_compatible_with { + my $self = shift; + my ($other) = @_; + + # XXX: this is pretty gross. the issue here is blah blah blah + # see the comments in CMOP::Method::Meta and CMOP::Method::Wrapped + return $self unless $other->_is_compatible_with($self->_real_ref_name); + + return $self->SUPER::_make_compatible_with(@_); +} 1; +# ABSTRACT: A Moose Method metaclass for Roles + __END__ =pod -=head1 NAME - -Moose::Meta::Role::Method - A Moose Method metaclass for Roles - =head1 DESCRIPTION -This is primarily used to mark methods coming from a role +This is primarily used to mark methods coming from a role as being different. Right now it is nothing but a subclass -of L. +of L. =head1 BUGS -All complex software has bugs lurking in it, and this module is no -exception. If you find a bug please either email me, or add the bug -to cpan-RT. - -=head1 AUTHOR - -Stevan Little Estevan@iinteractive.comE - -=head1 COPYRIGHT AND LICENSE - -Copyright 2006-2008 by Infinity Interactive, Inc. - -L - -This library is free software; you can redistribute it and/or modify -it under the same terms as Perl itself. +See L for details on reporting bugs. =cut