make MMC->create and MMR->create install meta methods properly
[gitmo/Moose.git] / lib / Moose / Meta / Method / Meta.pm
1
2 package Moose::Meta::Method::Meta;
3
4 use strict;
5 use warnings;
6
7 our $VERSION   = '1.14';
8 $VERSION = eval $VERSION;
9 our $AUTHORITY = 'cpan:STEVAN';
10
11 use base 'Moose::Meta::Method',
12          'Class::MOP::Method::Meta';
13
14 sub _is_caller_mop_internal {
15     my $self = shift;
16     my ($caller) = @_;
17     return 1 if $caller =~ /^Moose(?:::|$)/;
18     return $self->SUPER::_is_caller_mop_internal($caller);
19 }
20
21 # XXX: ugh multiple inheritance
22 sub wrap {
23     my $class = shift;
24     return $class->Class::MOP::Method::Meta::wrap(@_);
25 }
26
27 1;
28
29 __END__
30
31 =pod
32
33 =head1 NAME
34
35 Moose::Meta::Method::Meta - A Moose Method metaclass for C<meta> methods
36
37 =head1 DESCRIPTION
38
39 This class is a subclass of L<Class::MOP::Method::Meta> that
40 provides additional Moose-specific functionality, all of which is
41 private.
42
43 To understand this class, you should read the the
44 L<Class::MOP::Method::Meta> documentation.
45
46 =head1 BUGS
47
48 See L<Moose/BUGS> for details on reporting bugs.
49
50 =head1 AUTHOR
51
52 Jesse Luehrs E<lt>doy at tozt dot net<gt>
53
54 =head1 COPYRIGHT AND LICENSE
55
56 Copyright 2006-2010 by Infinity Interactive, Inc.
57
58 L<http://www.iinteractive.com>
59
60 This library is free software; you can redistribute it and/or modify
61 it under the same terms as Perl itself.
62
63 =cut