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