bump version to 0.87
[gitmo/Moose.git] / lib / Moose / Meta / Role / Method / Conflicting.pm
1
2 package Moose::Meta::Role::Method::Conflicting;
3
4 use strict;
5 use warnings;
6
7 use base qw(Moose::Meta::Role::Method::Required);
8
9 our $VERSION   = '0.87';
10 $VERSION = eval $VERSION;
11 our $AUTHORITY = 'cpan:STEVAN';
12
13 __PACKAGE__->meta->add_attribute('roles' => (
14     reader   => 'roles',
15     required => 1,
16 ));
17
18 1;
19
20 __END__
21
22 =pod
23
24 =head1 NAME
25
26 Moose::Meta::Role::Method::Conflicting - A Moose metaclass for conflicting methods in Roles
27
28 =head1 DESCRIPTION
29
30 =head1 INHERITANCE
31
32 C<Moose::Meta::Role::Method::Conflicting> is a subclass of
33 L<Moose::Meta::Role::Method::Required>.
34
35 =head1 METHODS
36
37 =over 4
38
39 =item B<< Moose::Meta::Role::Method::Conflicting->new(%options) >>
40
41 This creates a new type constraint based on the provided C<%options>:
42
43 =over 8
44
45 =item * name
46
47 The method name. This is required.
48
49 =item * roles
50
51 The list of role names that generated the conflict. This is required.
52
53 =back
54
55 =item B<< $method->name >>
56
57 Returns the conflicting method's name, as provided to the constructor.
58
59 =item B<< $method->roles >>
60
61 Returns the roles that generated this conflicting method, as provided to the
62 constructor.
63
64 =back
65
66 =head1 BUGS
67
68 All complex software has bugs lurking in it, and this module is no
69 exception. If you find a bug please either email me, or add the bug
70 to cpan-RT.
71
72 =head1 AUTHOR
73
74 Stevan Little E<lt>stevan@iinteractive.comE<gt>
75
76 =head1 COPYRIGHT AND LICENSE
77
78 Copyright 2006-2009 by Infinity Interactive, Inc.
79
80 L<http://www.iinteractive.com>
81
82 This library is free software; you can redistribute it and/or modify
83 it under the same terms as Perl itself.
84
85 =cut