2 package Moose::Meta::Role::Method::Conflicting;
7 use base qw(Moose::Meta::Role::Method::Required);
10 $VERSION = eval $VERSION;
11 our $AUTHORITY = 'cpan:STEVAN';
13 __PACKAGE__->meta->add_attribute('roles' => (
28 Moose::Meta::Role::Method::Conflicting - A Moose metaclass for conflicting methods in Roles
34 C<Moose::Meta::Role::Method::Conflicting> is a subclass of
35 L<Moose::Meta::Role::Method::Required>.
41 =item B<< Moose::Meta::Role::Method::Conflicting->new(%options) >>
43 This creates a new type constraint based on the provided C<%options>:
49 The method name. This is required.
53 The list of role names that generated the conflict. This is required.
57 =item B<< $method->name >>
59 Returns the conflicting method's name, as provided to the constructor.
61 =item B<< $method->roles >>
63 Returns the roles that generated this conflicting method, as provided to the
66 =item B<< $method->is_conflict >>
68 Returns whether the method requirement is due to a conflict. By default for
69 this class, it's true.
75 All complex software has bugs lurking in it, and this module is no
76 exception. If you find a bug please either email me, or add the bug
81 Stevan Little E<lt>stevan@iinteractive.comE<gt>
83 =head1 COPYRIGHT AND LICENSE
85 Copyright 2006-2009 by Infinity Interactive, Inc.
87 L<http://www.iinteractive.com>
89 This library is free software; you can redistribute it and/or modify
90 it under the same terms as Perl itself.