Enum needs to check that the value is not a ref
[gitmo/Moose.git] / lib / Moose / Meta / Method.pm
index b8db017..1488c32 100644 (file)
@@ -3,12 +3,12 @@ package Moose::Meta::Method;
 use strict;
 use warnings;
 
-our $VERSION   = '0.72_01';
-$VERSION = eval $VERSION;
-our $AUTHORITY = 'cpan:STEVAN';
+use Class::MOP::MiniTrait;
 
 use base 'Class::MOP::Method';
 
+Class::MOP::MiniTrait::apply(__PACKAGE__, 'Moose::Meta::Object::Trait');
+
 sub _error_thrower {
     my $self = shift;
     ( ref $self && $self->associated_metaclass ) || "Moose::Meta::Class";
@@ -31,20 +31,18 @@ sub _inline_throw_error {
 
 1;
 
+# ABSTRACT: A Moose Method metaclass
+
 __END__
 
 =pod
 
-=head1 NAME
-
-Moose::Meta::Method - A Moose Method metaclass
-
 =head1 DESCRIPTION
 
-This class is a subclass of L<Class::MOP::Class> that provides
+This class is a subclass of L<Class::MOP::Method> that provides
 additional Moose-specific functionality, all of which is private.
 
-To understand this class, you should read the the L<Class::MOP::Class>
+To understand this class, you should read the the L<Class::MOP::Method>
 documentation.
 
 =head1 INHERITANCE
@@ -53,21 +51,6 @@ C<Moose::Meta::Method> is a subclass of L<Class::MOP::Method>.
 
 =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 E<lt>stevan@iinteractive.comE<gt>
-
-=head1 COPYRIGHT AND LICENSE
-
-Copyright 2006-2009 by Infinity Interactive, Inc.
-
-L<http://www.iinteractive.com>
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
+See L<Moose/BUGS> for details on reporting bugs.
 
 =cut