Commit | Line | Data |
eec8ca8a |
1 | |
bb153262 |
2 | package Moose::Meta::Role::Method::Conflicting; |
eec8ca8a |
3 | |
4 | use strict; |
5 | use warnings; |
6 | |
7 | use base qw(Moose::Meta::Role::Method::Required); |
8 | |
9e4ed568 |
9 | our $VERSION = '0.84'; |
eec8ca8a |
10 | $VERSION = eval $VERSION; |
11 | our $AUTHORITY = 'cpan:STEVAN'; |
12 | |
44ed8891 |
13 | __PACKAGE__->meta->add_attribute('roles' => ( |
14 | reader => 'roles', |
15 | required => 1, |
16 | )); |
eec8ca8a |
17 | |
18 | 1; |
19 | |
20 | __END__ |
21 | |
22 | =pod |
23 | |
24 | =head1 NAME |
25 | |
bb153262 |
26 | Moose::Meta::Role::Method::Conflicting - A Moose metaclass for conflicting methods in Roles |
eec8ca8a |
27 | |
28 | =head1 DESCRIPTION |
29 | |
30 | =head1 INHERITANCE |
31 | |
bb153262 |
32 | C<Moose::Meta::Role::Method::Conflicting> is a subclass of |
eec8ca8a |
33 | L<Moose::Meta::Role::Method::Required>. |
34 | |
97403951 |
35 | =head1 METHODS |
36 | |
37 | =over 4 |
38 | |
49f8f3e6 |
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 | |
97403951 |
64 | =back |
65 | |
eec8ca8a |
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 |