2 package Moose::Meta::Role::Method::Conflicting;
9 use base qw(Moose::Meta::Role::Method::Required);
11 our $VERSION = '1.9900';
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 See L<Moose/BUGS> for details on reporting bugs.
83 Stevan Little E<lt>stevan@iinteractive.comE<gt>
85 =head1 COPYRIGHT AND LICENSE
87 Copyright 2006-2010 by Infinity Interactive, Inc.
89 L<http://www.iinteractive.com>
91 This library is free software; you can redistribute it and/or modify
92 it under the same terms as Perl itself.