X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FClass%2FMOP%2FClass.pm;h=1afc676c37034a7e86352b9a067aafe9b3c05f91;hb=fdea04e89892cf7f8bfc5287ac46506e0145a062;hp=334c57f44563d15b41168dc9c667a4d1de59b9db;hpb=28a82ddae9835be042c809198885582ba32b9583;p=gitmo%2FClass-MOP.git diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index 334c57f..1afc676 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -125,13 +125,15 @@ sub _real_ref_name { : ref $self; } +sub _meta_method_class { 'Class::MOP::Method::Meta' } + sub _add_meta_method { my $self = shift; my $existing_method = $self->find_method_by_name('meta'); return if $existing_method - && $existing_method->isa('Class::MOP::Method::Meta'); + && $existing_method->isa($self->_meta_method_class); $self->add_method( - 'meta' => Class::MOP::Method::Meta->wrap( + 'meta' => $self->_meta_method_class->wrap( name => 'meta', package_name => $self->name, associated_metaclass => $self,