2 package Moose::Meta::Role::Method::Conflicting;
9 use base qw(Moose::Meta::Role::Method::Required);
11 our $VERSION = '0.88';
12 $VERSION = eval $VERSION;
13 our $AUTHORITY = 'cpan:STEVAN';
15 __PACKAGE__->meta->add_attribute('roles' => (
20 sub roles_as_english_list {
22 Moose::Util::english_list( map { q{'} . $_ . q{'} } @{ $self->roles } );
33 Moose::Meta::Role::Method::Conflicting - A Moose metaclass for conflicting methods in Roles
39 C<Moose::Meta::Role::Method::Conflicting> is a subclass of
40 L<Moose::Meta::Role::Method::Required>.
46 =item B<< Moose::Meta::Role::Method::Conflicting->new(%options) >>
48 This creates a new type constraint based on the provided C<%options>:
54 The method name. This is required.
58 The list of role names that generated the conflict. This is required.
62 =item B<< $method->name >>
64 Returns the conflicting method's name, as provided to the constructor.
66 =item B<< $method->roles >>
68 Returns the roles that generated this conflicting method, as provided to the
71 =item B<< $method->roles_as_english_list >>
73 Returns the roles that generated this conflicting method as an English list.
79 All complex software has bugs lurking in it, and this module is no
80 exception. If you find a bug please either email me, or add the bug
85 Stevan Little E<lt>stevan@iinteractive.comE<gt>
87 =head1 COPYRIGHT AND LICENSE
89 Copyright 2006-2009 by Infinity Interactive, Inc.
91 L<http://www.iinteractive.com>
93 This library is free software; you can redistribute it and/or modify
94 it under the same terms as Perl itself.