70e21868b17f79436b21dfc6fcad121102775137
[gitmo/Moose.git] / lib / Moose / Meta / Role / Method / Required.pm
1
2 package Moose::Meta::Role::Method::Required;
3
4 use strict;
5 use warnings;
6 use metaclass;
7
8 use overload '""'     => sub { shift->name },   # stringify to method name
9              fallback => 1;
10
11 use base qw(Class::MOP::Object);
12
13 our $VERSION   = '0.79';
14 $VERSION = eval $VERSION;
15 our $AUTHORITY = 'cpan:STEVAN';
16
17 # This is not a Moose::Meta::Role::Method because it has no implementation, it
18 # is just a name
19
20 __PACKAGE__->meta->add_attribute('name' => (reader => 'name'));
21
22 1;
23
24 __END__
25
26 =pod
27
28 =head1 NAME
29
30 Moose::Meta::Role::Method::Required - A Moose metaclass for required methods in Roles
31
32 =head1 DESCRIPTION
33
34 =head1 BUGS
35
36 All complex software has bugs lurking in it, and this module is no
37 exception. If you find a bug please either email me, or add the bug
38 to cpan-RT.
39
40 =head1 AUTHOR
41
42 Stevan Little E<lt>stevan@iinteractive.comE<gt>
43
44 =head1 COPYRIGHT AND LICENSE
45
46 Copyright 2006-2009 by Infinity Interactive, Inc.
47
48 L<http://www.iinteractive.com>
49
50 This library is free software; you can redistribute it and/or modify
51 it under the same terms as Perl itself.
52
53 =cut